<?xml version="1.0" encoding="UTF-8" ?>
<DataIntegratorExport repositoryVersion="12.2.2.0000" productVersion="12.2.3.2">
<DIDatabaseDatastore name="SRCSTAGING_DS" typeId="3" >
<DIAttributes>
<DIAttribute name="DBLiveLoad" value="no"/>
<DIAttribute name="application_type" value="Custom"/>
<DIAttribute name="cdc_enabled" value="no"/>
<DIAttribute name="datastore_repotype" value="local"/>
<DIAttribute name="ds_configuration_enabled" value="yes"/>
<DIAttribute name="ds_configurations" hasNestedXMLTree ="true">

<DSConfigurations>
<DSConfiguration default="true" name="Default">
<case_sensitive>no</case_sensitive>
<database_type>Microsoft_SQL_Server</database_type>
<db_alias_name1>SRCSTAGING_ALIAS</db_alias_name1>
<db_alias_user1>dws</db_alias_user1>
<loader_xact_size>1000</loader_xact_size>
<locale_codepage>&lt;default&gt;</locale_codepage>
<locale_language>&lt;default&gt;</locale_language>
<locale_territory>&lt;default&gt;</locale_territory>
<mssql_windows_authentication>no</mssql_windows_authentication>
<password>;085A6DF93DA01ED1DEA3BB1DC1D656C0EF56E65913FB53605B75804428674DE2</password>
<sql_server_database>XsStaging</sql_server_database>
<sql_server_dataserver>localhost,1433</sql_server_dataserver>
<sql_server_version>Microsoft SQL Server 2005</sql_server_version>
<user>dws</user>
</DSConfiguration>
</DSConfigurations>

</DIAttribute>
<DIAttribute name="enable_data_transfer" value="yes"/>
<DIAttribute name="import_unknown_type" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="unknown_type_size" value="255"/>
</DIAttributes>
</DIDatabaseDatastore>
<DIDatabaseDatastore name="DW_ABC_DS" typeId="3" >
<DIAttributes>
<DIAttribute name="DBLiveLoad" value="no"/>
<DIAttribute name="application_type" value="Custom"/>
<DIAttribute name="cdc_enabled" value="no"/>
<DIAttribute name="datastore_repotype" value="local"/>
<DIAttribute name="ds_configuration_enabled" value="yes"/>
<DIAttribute name="ds_configurations" hasNestedXMLTree ="true">

<DSConfigurations>
<DSConfiguration default="true" name="Default">
<case_sensitive>no</case_sensitive>
<database_type>Microsoft_SQL_Server</database_type>
<db_alias_name1>DW_ABC_ALIAS</db_alias_name1>
<db_alias_user1>dwabc</db_alias_user1>
<loader_xact_size>1000</loader_xact_size>
<locale_codepage>&lt;default&gt;</locale_codepage>
<locale_language>&lt;default&gt;</locale_language>
<locale_territory>&lt;default&gt;</locale_territory>
<mssql_windows_authentication>no</mssql_windows_authentication>
<password>;89770408927C5ECAB76D9855E0DA5FE4F25B0E2949263E3397D5BD72B1A30930</password>
<sql_server_database>XsStaging</sql_server_database>
<sql_server_dataserver>localhost,1433</sql_server_dataserver>
<sql_server_version>Microsoft SQL Server 2005</sql_server_version>
<user>dwabc</user>
</DSConfiguration>
</DSConfigurations>

</DIAttribute>
<DIAttribute name="enable_data_transfer" value="yes"/>
<DIAttribute name="import_unknown_type" value="no"/>
<DIAttribute name="name" value="DW_ABC_DS"/>
<DIAttribute name="unknown_type_size" value="255"/>
</DIAttributes>
</DIDatabaseDatastore>
<DIDatabaseDatastore name="DW_METADATA_DS" typeId="3" >
<DIAttributes>
<DIAttribute name="DBLiveLoad" value="no"/>
<DIAttribute name="application_type" value="Custom"/>
<DIAttribute name="cdc_enabled" value="no"/>
<DIAttribute name="datastore_repotype" value="local"/>
<DIAttribute name="ds_configuration_enabled" value="yes"/>
<DIAttribute name="ds_configurations" hasNestedXMLTree ="true">

<DSConfigurations>
<DSConfiguration default="true" name="Default">
<case_sensitive>no</case_sensitive>
<database_type>Microsoft_SQL_Server</database_type>
<db_alias_name1>DW_METADATA_ALIAS</db_alias_name1>
<db_alias_user1>dwmetadata</db_alias_user1>
<loader_xact_size>1000</loader_xact_size>
<locale_codepage>&lt;default&gt;</locale_codepage>
<locale_language>&lt;default&gt;</locale_language>
<locale_territory>&lt;default&gt;</locale_territory>
<mssql_windows_authentication>no</mssql_windows_authentication>
<password>;085A6DF93DA01ED1DEA3BB1DC1D656C0EF56E65913FB53605B75804428674DE2</password>
<sql_server_database>XsStaging</sql_server_database>
<sql_server_dataserver>localhost,1433</sql_server_dataserver>
<sql_server_version>Microsoft SQL Server 2005</sql_server_version>
<user>dwmetadata</user>
</DSConfiguration>
</DSConfigurations>

</DIAttribute>
<DIAttribute name="enable_data_transfer" value="yes"/>
<DIAttribute name="import_unknown_type" value="no"/>
<DIAttribute name="name" value="DW_METADATA_DS"/>
<DIAttribute name="unknown_type_size" value="255"/>
</DIAttributes>
</DIDatabaseDatastore>
<DITable name="AM_AMASSET_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DACQUISITION" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="LABEL" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="LMAINTCNTRID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DDELIVER" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="LASTID" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="DDISPOS" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="LMODELID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DINSTALL" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DREQUEST" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="DORDER" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMASSET_EXT" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="AM_AMASSET_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Number_Of_Updates" value="0" />
<DIAttribute name="Number_Of_Deletes" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LMAINTCNTRID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LMODELID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LASTID" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="LABEL" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="DREQUEST" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DDISPOS" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DACQUISITION" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="DORDER" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DINSTALL" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DDELIVER" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMASSET_TSNP" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="AM_AMBUDGCENTER_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="NAME" datatype="VARCHAR" size="64" nullable="true" >
</DIColumn>
<DIColumn name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMBUDGCENTER_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="AM_AMBUDGCENTER_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="1 Seconds" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="NAME" datatype="VARCHAR" size="64" nullable="true" >
</DIColumn>
<DIColumn name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMBUDGCENTER_TSNP" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="AM_AMBUDGET_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="1 Seconds" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LBUDGCNTRID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="CODE" datatype="VARCHAR" size="20" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="LFYDIVISIONID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="NAME" datatype="VARCHAR" size="80" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMBUDGET_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="AM_AMBUDGET_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="CODE" datatype="VARCHAR" size="20" nullable="true" >
</DIColumn>
<DIColumn name="NAME" datatype="VARCHAR" size="80" nullable="true" >
</DIColumn>
<DIColumn name="LBUDGCNTRID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="LFYDIVISIONID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMBUDGET_TSNP" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="AM_AMBUDGLINE_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DNFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="NAME" datatype="VARCHAR" size="128" nullable="true" >
</DIColumn>
<DIColumn name="BUDGETCUR" datatype="VARCHAR" size="5" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LPROJID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LBUDGETCATID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DSTART" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_QUALIFIER" datatype="VARCHAR" size="200" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="LBUDGETID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="OCFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MBUDGET" datatype="DOUBLE" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMBUDGLINE_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="AM_AMBUDGLINE_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="1 Seconds" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MBUDGET" datatype="DOUBLE" nullable="false" >
</DIColumn>
<DIColumn name="LPROJID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="NAME" datatype="VARCHAR" size="128" nullable="true" >
</DIColumn>
<DIColumn name="DNFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="LBUDGETID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LBUDGETCATID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DSTART" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_QUALIFIER" datatype="VARCHAR" size="200" nullable="true" >
</DIColumn>
<DIColumn name="OCFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="BUDGETCUR" datatype="VARCHAR" size="5" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMBUDGLINE_TSNP" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="AM_AMCOMPANY_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="NAME" datatype="VARCHAR" size="30" nullable="false" >
</DIColumn>
<DIColumn name="CODE" datatype="VARCHAR" size="20" nullable="true" >
</DIColumn>
<DIColumn name="MD_QUALIFIER" datatype="VARCHAR" size="30" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMCOMPANY_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="AM_AMCOMPANY_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Number_Of_Updates" value="0" />
<DIAttribute name="Number_Of_Deletes" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="1 Seconds" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="NAME" datatype="VARCHAR" size="30" nullable="false" >
</DIColumn>
<DIColumn name="MD_QUALIFIER" datatype="VARCHAR" size="30" nullable="true" >
</DIColumn>
<DIColumn name="CODE" datatype="VARCHAR" size="20" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMCOMPANY_TSNP" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="AM_AMCONTACT_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LCPYID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="NAME" datatype="VARCHAR" size="30" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MD_QUALIFIER" datatype="VARCHAR" size="30" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="FIRST_NAME" datatype="VARCHAR" size="30" nullable="true" >
</DIColumn>
<DIColumn name="EMAIL" datatype="VARCHAR" size="40" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMCONTACT_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="AM_AMCONTACT_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_QUALIFIER" datatype="VARCHAR" size="30" nullable="true" >
</DIColumn>
<DIColumn name="EMAIL" datatype="VARCHAR" size="40" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="FIRST_NAME" datatype="VARCHAR" size="30" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="NAME" datatype="VARCHAR" size="30" nullable="true" >
</DIColumn>
<DIColumn name="LCPYID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMCONTACT_TSNP" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="AM_AMCONTRACT_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="FLAG_ASSIGNABLE" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="RENEWAL_OPTION_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="COSTCATEGORY_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="DATE_END_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_PURCHASE" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="UPGRADE_OPTION_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="CONTRACT_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="DATE_START_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="CONTRACT_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="STATUS" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PARENT_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_UPGRADE" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="CONTRACT_NAME" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PURCHASE_OPTION_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="LICENSE_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="DATE_END_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="SUPPLIER_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PAYMENT_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_RENEWAL" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_RETURN" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MANAGER_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DATE_START_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PERIODICITY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="COSTCENTER_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="RETURN_OPTION_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMCONTRACT_EXT" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="AM_AMCONTRACT_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="FLAG_RENEWAL" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="PURCHASE_OPTION_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PAYMENT_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PARENT_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PERIODICITY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="LICENSE_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="STATUS" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_ASSIGNABLE" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_RETURN" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_PURCHASE" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="RETURN_OPTION_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="COSTCATEGORY_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="DATE_END_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="CONTRACT_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="CONTRACT_NAME" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="DATE_END_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="COSTCENTER_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="SUPPLIER_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_UPGRADE" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MANAGER_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="RENEWAL_OPTION_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="DATE_START_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="CONTRACT_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="DATE_START_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="UPGRADE_OPTION_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMCONTRACT_TSNP" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="AM_AMCOSTCENTER_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DEND_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="ACCTNO" datatype="VARCHAR" size="30" nullable="true" >
</DIColumn>
<DIColumn name="CODE" datatype="VARCHAR" size="20" nullable="true" >
</DIColumn>
<DIColumn name="DSTART_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DEND_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="TITLE" datatype="VARCHAR" size="30" nullable="true" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="DSTART_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMCOSTCENTER_EXT" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="AM_AMCOSTCENTER_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="CODE" datatype="VARCHAR" size="20" nullable="true" >
</DIColumn>
<DIColumn name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="ACCTNO" datatype="VARCHAR" size="30" nullable="true" >
</DIColumn>
<DIColumn name="DSTART_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DEND_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="TITLE" datatype="VARCHAR" size="30" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DSTART_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DEND_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMCOSTCENTER_TSNP" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="AM_AMCOUNTRY_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="1 Seconds" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="NAME" datatype="VARCHAR" size="64" nullable="true" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMCOUNTRY_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="AM_AMCOUNTRY_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Number_Of_Updates" value="0" />
<DIAttribute name="Number_Of_Deletes" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="NAME" datatype="VARCHAR" size="64" nullable="true" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMCOUNTRY_TSNP" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="AM_AMCURRATE_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="TARGET_NAME" datatype="VARCHAR" size="4" nullable="true" >
</DIColumn>
<DIColumn name="FRATE" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="DTEND" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="SOURCE_NAME" datatype="VARCHAR" size="4" nullable="true" >
</DIColumn>
<DIColumn name="DTSTART" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMCURRATE_EXT" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="AM_AMCURRATE_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SOURCE_NAME" datatype="VARCHAR" size="4" nullable="true" >
</DIColumn>
<DIColumn name="TARGET_NAME" datatype="VARCHAR" size="4" nullable="true" >
</DIColumn>
<DIColumn name="FRATE" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DTSTART" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DTEND" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMCURRATE_TSNP" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="AM_AMEMPLDEPT_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DHIRE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="EMAIL" datatype="VARCHAR" size="40" nullable="true" >
</DIColumn>
<DIColumn name="LLOCAID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SLVL" datatype="DECIMAL" precision="16" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DLEAVE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="FIRSTNAME" datatype="VARCHAR" size="30" nullable="true" >
</DIColumn>
<DIColumn name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="DHIRE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="BDEPARTMENT" datatype="DECIMAL" precision="16" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="NAME" datatype="VARCHAR" size="50" nullable="true" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="DLEAVE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_QUALIFIER" datatype="VARCHAR" size="30" nullable="true" >
</DIColumn>
<DIColumn name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMEMPLDEPT_EXT" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="AM_AMEMPLDEPT_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Number_Of_Updates" value="0" />
<DIAttribute name="Number_Of_Deletes" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DHIRE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="LLOCAID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="BDEPARTMENT" datatype="DECIMAL" precision="16" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="FIRSTNAME" datatype="VARCHAR" size="30" nullable="true" >
</DIColumn>
<DIColumn name="EMAIL" datatype="VARCHAR" size="40" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="DLEAVE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DHIRE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DLEAVE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="SLVL" datatype="DECIMAL" precision="16" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="NAME" datatype="VARCHAR" size="50" nullable="true" >
</DIColumn>
<DIColumn name="MD_QUALIFIER" datatype="VARCHAR" size="30" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMEMPLDEPT_TSNP" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="AM_AMEXPENSELINE_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="1 Seconds" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DEBITCUR" datatype="VARCHAR" size="5" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="LCNTRID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="LPROJID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DNFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="LCOSTID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LEMPLDEPTID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="TITLE" datatype="VARCHAR" size="150" nullable="true" >
</DIColumn>
<DIColumn name="OCFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="LASTID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_QUALIFIER" datatype="VARCHAR" size="200" nullable="true" >
</DIColumn>
<DIColumn name="DBILLING_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MCREDIT" datatype="DOUBLE" nullable="false" >
</DIColumn>
<DIColumn name="DBILLING_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SESTATUS" datatype="DECIMAL" precision="16" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LCOSTCATID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MDEBIT" datatype="DOUBLE" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMEXPENSELINE_EXT" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="AM_AMEXPENSELINE_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LCNTRID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LCOSTCATID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MCREDIT" datatype="DOUBLE" nullable="false" >
</DIColumn>
<DIColumn name="DEBITCUR" datatype="VARCHAR" size="5" nullable="true" >
</DIColumn>
<DIColumn name="TITLE" datatype="VARCHAR" size="150" nullable="true" >
</DIColumn>
<DIColumn name="DBILLING_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LCOSTID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MDEBIT" datatype="DOUBLE" nullable="false" >
</DIColumn>
<DIColumn name="SESTATUS" datatype="DECIMAL" precision="16" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_QUALIFIER" datatype="VARCHAR" size="200" nullable="true" >
</DIColumn>
<DIColumn name="LASTID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LEMPLDEPTID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DNFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="DBILLING_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="LPROJID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="OCFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMEXPENSELINE_TSNP" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="AM_AMLOCATION_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="ZIP" datatype="VARCHAR" size="20" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="LCOUNTRYID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="STATEX" datatype="VARCHAR" size="80" nullable="true" >
</DIColumn>
<DIColumn name="MD_QUALIFIER" datatype="VARCHAR" size="30" nullable="true" >
</DIColumn>
<DIColumn name="NAME" datatype="VARCHAR" size="30" nullable="true" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="CITY" datatype="VARCHAR" size="80" nullable="true" >
</DIColumn>
<DIColumn name="LOCATIONTYPE" datatype="VARCHAR" size="80" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMLOCATION_EXT" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="AM_AMLOCATION_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Number_Of_Updates" value="0" />
<DIAttribute name="Number_Of_Deletes" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="LOCATIONTYPE" datatype="VARCHAR" size="80" nullable="true" >
</DIColumn>
<DIColumn name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="CITY" datatype="VARCHAR" size="80" nullable="true" >
</DIColumn>
<DIColumn name="STATEX" datatype="VARCHAR" size="80" nullable="true" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="ZIP" datatype="VARCHAR" size="20" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LCOUNTRYID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_QUALIFIER" datatype="VARCHAR" size="30" nullable="true" >
</DIColumn>
<DIColumn name="NAME" datatype="VARCHAR" size="30" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMLOCATION_TSNP" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="AM_AMMODEL_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="INSTOS" datatype="VARCHAR" size="80" nullable="true" >
</DIColumn>
<DIColumn name="NAME" datatype="VARCHAR" size="80" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="LMEMORYSIZEMB" datatype="DECIMAL" precision="32" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="CPUTYPE" datatype="VARCHAR" size="80" nullable="true" >
</DIColumn>
<DIColumn name="LNATUREID" datatype="DECIMAL" precision="32" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="LMODELID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMMODEL_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="AM_AMMODEL_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Number_Of_Updates" value="0" />
<DIAttribute name="Number_Of_Deletes" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="1 Seconds" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LNATUREID" datatype="DECIMAL" precision="32" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="CPUTYPE" datatype="VARCHAR" size="80" nullable="true" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="LMEMORYSIZEMB" datatype="DECIMAL" precision="32" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="INSTOS" datatype="VARCHAR" size="80" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="LMODELID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="NAME" datatype="VARCHAR" size="80" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMMODEL_TSNP" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="AM_AMNATURE_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="BSYSTEM" datatype="DECIMAL" precision="16" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="NAME" datatype="VARCHAR" size="40" nullable="true" >
</DIColumn>
<DIColumn name="LNATUREID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMNATURE_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="AM_AMNATURE_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Number_Of_Updates" value="0" />
<DIAttribute name="Number_Of_Deletes" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="LNATUREID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="NAME" datatype="VARCHAR" size="40" nullable="true" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="BSYSTEM" datatype="DECIMAL" precision="16" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMNATURE_TSNP" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="AM_AMPORTFOLIO_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LASTID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="LLOCAID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="CODE" datatype="VARCHAR" size="64" nullable="true" >
</DIColumn>
<DIColumn name="LMODELID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MAVGPRICE" datatype="DOUBLE" nullable="false" >
</DIColumn>
<DIColumn name="LORGID" datatype="DECIMAL" precision="32" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="ASSETTAG" datatype="VARCHAR" size="40" nullable="true" >
</DIColumn>
<DIColumn name="AVGPRICECUR" datatype="VARCHAR" size="5" nullable="true" >
</DIColumn>
<DIColumn name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="CMDBID" datatype="VARCHAR" size="200" nullable="true" >
</DIColumn>
<DIColumn name="LPORTFOLIOITEMID" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="LCOSTID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SEASSIGNMENT" datatype="DECIMAL" precision="16" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMPORTFOLIO_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="AM_AMPORTFOLIO_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Number_Of_Updates" value="0" />
<DIAttribute name="Number_Of_Deletes" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="CMDBID" datatype="VARCHAR" size="200" nullable="true" >
</DIColumn>
<DIColumn name="SEASSIGNMENT" datatype="DECIMAL" precision="16" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="CODE" datatype="VARCHAR" size="64" nullable="true" >
</DIColumn>
<DIColumn name="LLOCAID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LMODELID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LORGID" datatype="DECIMAL" precision="32" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="LASTID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="AVGPRICECUR" datatype="VARCHAR" size="5" nullable="true" >
</DIColumn>
<DIColumn name="LPORTFOLIOITEMID" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MAVGPRICE" datatype="DOUBLE" nullable="false" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="ASSETTAG" datatype="VARCHAR" size="40" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LCOSTID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMPORTFOLIO_TSNP" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="AM_AMPROJECT_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="Number_Of_Updates" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="Number_Of_Deletes" value="Cannot track number of inserts, updates or deletes for AutoCorrect Loads" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DSTART_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="TITLE" datatype="VARCHAR" size="40" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="DEND_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="BIZVALDESC" datatype="VARCHAR" size="64" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="REFX" datatype="VARCHAR" size="16" nullable="true" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_QUALIFIER" datatype="VARCHAR" size="200" nullable="true" >
</DIColumn>
<DIColumn name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="STATUS" datatype="VARCHAR" size="80" nullable="true" >
</DIColumn>
<DIColumn name="DSTART_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DEND_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMPROJECT_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="AM_AMPROJECT_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="Total_Number_Of_Rows_Processed" value="0" />
<DIAttribute name="Number_Of_Rows_Rejected" value="0" />
<DIAttribute name="Number_Of_Inserts" value="0" />
<DIAttribute name="Number_Of_Updates" value="0" />
<DIAttribute name="Number_Of_Deletes" value="0" />
<DIAttribute name="Elapsed_Time_For_Load" value="0 Seconds" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DEND_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="BIZVALDESC" datatype="VARCHAR" size="64" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="TITLE" datatype="VARCHAR" size="40" nullable="true" >
</DIColumn>
<DIColumn name="DSTART_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DEND_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="STATUS" datatype="VARCHAR" size="80" nullable="true" >
</DIColumn>
<DIColumn name="MD_QUALIFIER" datatype="VARCHAR" size="200" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DSTART_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="REFX" datatype="VARCHAR" size="16" nullable="true" >
</DIColumn>
<DIColumn name="SRC_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_AM_AMPROJECT_TSNP" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="FILE_LOCATION_INFO" owner="dwmetadata" datastore="DW_METADATA_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="DW_METADATA_ALIAS" />
</DIProperties>
<DIColumn name="ID" datatype="DECIMAL" precision="10" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SOURCE" datatype="VARCHAR" size="30" nullable="true" >
</DIColumn>
<DIColumn name="FILE_LOCATION" datatype="VARCHAR" size="200" nullable="true" >
</DIColumn>
</DITable>
<DIScriptFunction name="ABC_ENDJB_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="#UPDATE STEP_RUNTIME RECORD WITH SUCCESS STATUS AND END TIME&#xA;#GET JOB_ID&#xA;&#xA;$l_status = 'SUCCESS';&#xA;#$now = sysdate();&#xA;&#xA;$l_wf_failed_count = sql('DW_ABC_DS',' select count(status) from JOB_STREAM_STEP_DETAIL_RT&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND (status = \'ERROR\' or status = \'MAX_EXECUTION_TIME_EXCEEDED\')');&#xA;ETL_PRINT( '**     wf_failed_count = {$l_wf_failed_count}' );&#xA;&#xA;$l_wf_success_count = sql('DW_ABC_DS',' select count(status) from JOB_STREAM_STEP_DETAIL_RT&#xA;                     where MD_PROCESS_ID = {$p_process_id} AND status = \'SUCCESS\'');&#xA;ETL_PRINT( '**     wf_success_count = {$l_wf_success_count}' );&#xA;&#xA;$l_am_failed_count = sql('DW_ABC_DS',' select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND (status = \'ERROR\' or status = \'MAX_EXECUTION_TIME_EXCEEDED\')');&#xA;ETL_PRINT( '**     am_failed_count = {$l_am_failed_count}' );&#xA;&#xA;$l_am_warning_count = sql('DW_ABC_DS',' select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND status = \'WARNING\'');&#xA;ETL_PRINT( '**     am_warning_count = {$l_am_warning_count}' );&#xA;&#xA;$l_am_success_count = sql('DW_ABC_DS',' select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND status = \'SUCCESS\'');&#xA;ETL_PRINT( '**     am_success_count = {$l_am_success_count}' );&#xA;&#xA;$l_status_info = 'WFs statuses: success: ' || $l_wf_success_count || ', error: '  || $l_wf_failed_count ||' || Audit metrics: success: ' || $l_am_success_count || ', warning: ' || $l_am_warning_count || ', error: ' || $l_am_failed_count || '.';&#xA;&#xA;if ($l_wf_failed_count &gt; 0)&#xA;begin&#xA;&#x9;$l_status = 'ERROR';&#xA;&#x9;$l_reco_action =  'Drill to WF level to access the error message. ';&#xA;end&#x9;&#xA;else if ($l_am_failed_count &gt; 0)&#xA;begin&#xA;&#x9;$l_status = 'ERROR'; &#xA;&#x9;$l_reco_action = $l_reco_action || 'Refer to failed metrics. ';&#xA;end&#xA;else if ($l_am_warning_count &gt; 0)&#xA;begin&#xA;&#x9;$l_status = 'WARNING';&#xA;&#x9;$l_reco_action = $l_reco_action || 'Check WARNING metrics. ';&#xA;end&#xA;&#xA;&#xA;#sql('DW_ABC_DS','update JOB_STREAM_STEP_RT&#xA;#               set STATUS = {$l_status}, STATE = \'FINISHED\' , END_TIME = {sysdate()}, STATUS_INFO = {$l_status_info}, RECO_ACTION = {$l_reco_action}&#xA;#               where MD_PROCESS_ID = {$p_process_id}');&#xA;&#xA;sql('DW_ABC_DS','update JOB_STREAM_STEP_RT&#xA;               set STATUS = {$l_status}, STATE = \'FINISHED\' , END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127), STATUS_INFO = {$l_status_info}, RECO_ACTION = {$l_reco_action}&#xA;               where MD_PROCESS_ID = {$p_process_id}');&#xA;ETL_PRINT( '**' );&#xA;ETL_PRINT( '**' );&#xA;ETL_PRINT( '** The Job {job_name()} is ending' );&#xA;ETL_PRINT( '**   status: {$l_status}' );&#xA;ETL_PRINT( '**   explanation: {$l_status_info})' );&#xA;ETL_PRINT( '********************************' );&#xA;ETL_PRINT( '********************************' );&#xA;&#xA;return NULL;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_wf_failed_count" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_status" datatype="VARCHAR" size="10" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_wf_success_count" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_status_info" datatype="VARCHAR" size="400" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_am_failed_count" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_am_warning_count" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_am_success_count" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_reco_action" datatype="VARCHAR" size="4000" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIAssignmentStep typeId="12" variable="$l_status" >
<DIExpression isString="true" expr="'SUCCESS'" >
<CONSTANT value="SUCCESS" datatype="VARCHAR" size="7" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$l_wf_failed_count" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', ' select count(status) from JOB_STREAM_STEP_DETAIL_RT&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND (status = \'ERROR\' or status = \'MAX_EXECUTION_TIME_EXCEEDED\')')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value=" select count(status) from JOB_STREAM_STEP_DETAIL_RT&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND (status = 'ERROR' or status = 'MAX_EXECUTION_TIME_EXCEEDED')" datatype="VARCHAR" size="175" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**     wf_failed_count = {$l_wf_failed_count}')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**     wf_failed_count = {$l_wf_failed_count}" datatype="VARCHAR" size="45" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_wf_success_count" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', ' select count(status) from JOB_STREAM_STEP_DETAIL_RT&#xA;                     where MD_PROCESS_ID = {$p_process_id} AND status = \'SUCCESS\'')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value=" select count(status) from JOB_STREAM_STEP_DETAIL_RT&#xA;                     where MD_PROCESS_ID = {$p_process_id} AND status = 'SUCCESS'" datatype="VARCHAR" size="134" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**     wf_success_count = {$l_wf_success_count}')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**     wf_success_count = {$l_wf_success_count}" datatype="VARCHAR" size="47" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_am_failed_count" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', ' select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND (status = \'ERROR\' or status = \'MAX_EXECUTION_TIME_EXCEEDED\')')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value=" select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND (status = 'ERROR' or status = 'MAX_EXECUTION_TIME_EXCEEDED')" datatype="VARCHAR" size="162" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**     am_failed_count = {$l_am_failed_count}')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**     am_failed_count = {$l_am_failed_count}" datatype="VARCHAR" size="45" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_am_warning_count" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', ' select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND status = \'WARNING\'')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value=" select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND status = 'WARNING'" datatype="VARCHAR" size="120" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**     am_warning_count = {$l_am_warning_count}')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**     am_warning_count = {$l_am_warning_count}" datatype="VARCHAR" size="47" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_am_success_count" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', ' select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND status = \'SUCCESS\'')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value=" select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND status = 'SUCCESS'" datatype="VARCHAR" size="120" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**     am_success_count = {$l_am_success_count}')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**     am_success_count = {$l_am_success_count}" datatype="VARCHAR" size="47" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_status_info" >
<DIExpression isString="true" expr="(((((((((('WFs statuses: success: ' || $l_wf_success_count) || ', error: ') || $l_wf_failed_count) || ' || Audit metrics: success: ') || $l_am_success_count) || ', warning: ') || $l_am_warning_count) || ', error: ') || $l_am_failed_count) || '.')" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="WFs statuses: success: " datatype="VARCHAR" size="23" />
<VARIABLE_REFERENCE name="$l_wf_success_count" />
</CONCAT>
<CONSTANT value=", error: " datatype="VARCHAR" size="9" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_wf_failed_count" />
</CONCAT>
<CONSTANT value=" || Audit metrics: success: " datatype="VARCHAR" size="28" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_am_success_count" />
</CONCAT>
<CONSTANT value=", warning: " datatype="VARCHAR" size="11" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_am_warning_count" />
</CONCAT>
<CONSTANT value=", error: " datatype="VARCHAR" size="9" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_am_failed_count" />
</CONCAT>
<CONSTANT value="." datatype="VARCHAR" size="1" />
</CONCAT>
</DIExpression>
</DIAssignmentStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_wf_failed_count &gt; 0)" >
<LOGICAL_OP op="GT">
<VARIABLE_REFERENCE name="$l_wf_failed_count" />
<CONSTANT value="0" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$l_status" >
<DIExpression isString="true" expr="'ERROR'" >
<CONSTANT value="ERROR" datatype="VARCHAR" size="5" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$l_reco_action" >
<DIExpression isString="true" expr="'Drill to WF level to access the error message. '" >
<CONSTANT value="Drill to WF level to access the error message. " datatype="VARCHAR" size="47" />
</DIExpression>
</DIAssignmentStep>
</DIIf>
<DIElse>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_am_failed_count &gt; 0)" >
<LOGICAL_OP op="GT">
<VARIABLE_REFERENCE name="$l_am_failed_count" />
<CONSTANT value="0" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$l_status" >
<DIExpression isString="true" expr="'ERROR'" >
<CONSTANT value="ERROR" datatype="VARCHAR" size="5" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$l_reco_action" >
<DIExpression isString="true" expr="($l_reco_action || 'Refer to failed metrics. ')" >
<CONCAT>
<VARIABLE_REFERENCE name="$l_reco_action" />
<CONSTANT value="Refer to failed metrics. " datatype="VARCHAR" size="25" />
</CONCAT>
</DIExpression>
</DIAssignmentStep>
</DIIf>
<DIElse>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_am_warning_count &gt; 0)" >
<LOGICAL_OP op="GT">
<VARIABLE_REFERENCE name="$l_am_warning_count" />
<CONSTANT value="0" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$l_status" >
<DIExpression isString="true" expr="'WARNING'" >
<CONSTANT value="WARNING" datatype="VARCHAR" size="7" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$l_reco_action" >
<DIExpression isString="true" expr="($l_reco_action || 'Check WARNING metrics. ')" >
<CONCAT>
<VARIABLE_REFERENCE name="$l_reco_action" />
<CONSTANT value="Check WARNING metrics. " datatype="VARCHAR" size="23" />
</CONCAT>
</DIExpression>
</DIAssignmentStep>
</DIIf>
</DIIfStep>
</DIElse>
</DIIfStep>
</DIElse>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_RT&#xA;               set STATUS = {$l_status}, STATE = \'FINISHED\' , END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127), STATUS_INFO = {$l_status_info}, RECO_ACTION = {$l_reco_action}&#xA;               where MD_PROCESS_ID = {$p_process_id}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_RT&#xA;               set STATUS = {$l_status}, STATE = 'FINISHED' , END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127), STATUS_INFO = {$l_status_info}, RECO_ACTION = {$l_reco_action}&#xA;               where MD_PROCESS_ID = {$p_process_id}" datatype="VARCHAR" size="272" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('** The Job {job_name()} is ending')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="** The Job {job_name()} is ending" datatype="VARCHAR" size="33" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**   status: {$l_status}')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**   status: {$l_status}" datatype="VARCHAR" size="24" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**   explanation: {$l_status_info})')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**   explanation: {$l_status_info})" datatype="VARCHAR" size="35" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="********************************" datatype="VARCHAR" size="32" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="********************************" datatype="VARCHAR" size="32" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="ABC_ENDWF_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="&#xA;# LOOP THROUGH ALL VALUES IN INPUT PARAMETER TARGET_TABLE FIELD&#xA;# UPDATE EACH VALUE (IN DELIMITED STRING) AS SINGLE RECORD WITH ENDDATE&#xA;# CHECK THAT ABC_ENDWF_FN CANNOT BE CALLED BEFORE ABC_STARTWF_FN&#xA;&#xA;$l_previous_status = sql('DW_ABC_DS','select STATUS from JOB_STREAM_STEP_DETAIL_RT&#xA;                                      where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ');&#xA;&#xA;if ($l_previous_status is null)&#xA;#  sql('DW_ABC_DS','insert into JOB_STREAM_STEP_DETAIL_RT &#xA;#                   (MD_PROCESS_ID, DETAIL_NAME, STATUS, END_TIME)  &#xA;#                   VALUES ({$p_process_id}, {$p_detailname}, \'ERROR\', {sysdate()})');&#x9;&#xD;&#xA;  sql('DW_ABC_DS','insert into JOB_STREAM_STEP_DETAIL_RT &#xA;                   (MD_PROCESS_ID, DETAIL_NAME, STATUS, END_TIME)  &#xA;                   VALUES ({$p_process_id}, {$p_detailname}, \'ERROR\', convert(datetime,{sysdate()},111))');&#x9;&#xA;else&#xA;  begin&#xA;    if ($l_previous_status = 'RUNNING')&#xA;      sql('DW_ABC_DS','update JOB_STREAM_STEP_DETAIL_RT&#xA;                       set STATUS = \'SUCCESS\', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                       where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ');&#xA;&#x9;else&#xA;      sql('DW_ABC_DS','update JOB_STREAM_STEP_DETAIL_RT&#xA;                       set STATUS = \'ERROR\', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                       where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ');&#xA;&#x9;&#xA;  end&#xA;&#xA;ETL_PRINT( '        ** The workflow: [workflow_name()] is ending' );&#xA;ETL_PRINT( '        **   user: ' || system_user_name() );&#xA;ETL_PRINT( '        **   detail name: ' || $p_detailname );&#xA;ETL_PRINT( '        ********************************' );&#xA;ETL_PRINT( '        ********************************' );&#xA;&#xA;return NULL;&#xA;&#xA;&#xA;&#xA;&#xA;  "/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_detailname" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="IN" name="$p_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_previous_status" datatype="VARCHAR" size="12" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIAssignmentStep typeId="12" variable="$l_previous_status" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'select STATUS from JOB_STREAM_STEP_DETAIL_RT&#xA;                                      where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="select STATUS from JOB_STREAM_STEP_DETAIL_RT&#xA;                                      where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} " datatype="VARCHAR" size="155" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_previous_status IS  NULL )" >
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$l_previous_status" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'insert into JOB_STREAM_STEP_DETAIL_RT &#xA;                   (MD_PROCESS_ID, DETAIL_NAME, STATUS, END_TIME)  &#xA;                   VALUES ({$p_process_id}, {$p_detailname}, \'ERROR\', convert(datetime,{sysdate()},111))')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="insert into JOB_STREAM_STEP_DETAIL_RT &#xA;                   (MD_PROCESS_ID, DETAIL_NAME, STATUS, END_TIME)  &#xA;                   VALUES ({$p_process_id}, {$p_detailname}, 'ERROR', convert(datetime,{sysdate()},111))" datatype="VARCHAR" size="211" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_previous_status = 'RUNNING')" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$l_previous_status" />
<CONSTANT value="RUNNING" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_DETAIL_RT&#xA;                       set STATUS = \'SUCCESS\', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                       where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_DETAIL_RT&#xA;                       set STATUS = 'SUCCESS', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                       where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} " datatype="VARCHAR" size="243" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_DETAIL_RT&#xA;                       set STATUS = \'ERROR\', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                       where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_DETAIL_RT&#xA;                       set STATUS = 'ERROR', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                       where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} " datatype="VARCHAR" size="241" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIElse>
</DIIfStep>
</DIElse>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ** The workflow: [workflow_name()] is ending')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ** The workflow: [workflow_name()] is ending" datatype="VARCHAR" size="52" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   user: ' || system_user_name()))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   user: " datatype="VARCHAR" size="19" />
<FUNCTION_CALL name="system_user_name"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   detail name: ' || $p_detailname))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   detail name: " datatype="VARCHAR" size="26" />
<VARIABLE_REFERENCE name="$p_detailname" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="ABC_FAILJB_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="# IN EVENT THE JOB FAILED, UPDATE JOB RECORD WITH FAIL STATUS&#xA;&#xA;&#xA;if ($p_process_id is null)&#xA;  begin&#xA; &#x9; ETL_PRINT( 'ENTERED THE JOB CATCH BEFORE THE PROCESS_ID COULD BE SET (debug mode specific error)' );&#xA; &#x9; ETL_PRINT( 'AN ERROR RAISED BEFORE the execution of the job start script (this exception will not be recorded by ABC infrastructure)' );&#xA;  end&#xA;else&#xA;  begin&#xA;&#x9; $l_status_text = replace_substr( $p_status_info, '\'','\'\'');&#xA; &#x9; sql('DW_ABC_DS','update JOB_STREAM_STEP_RT&#xA;                 set STATE = \'FINISHED\', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127), STATUS = \'ERROR\', STATUS_INFO = {$l_status_text}&#xA;                 where  MD_PROCESS_ID = {$p_process_id} ');&#xA;&#xA;  end&#xA;&#xA;&#xA;ETL_PRINT( '        ** The Job : [job_name()] FAILED' );&#xA;ETL_PRINT( '        **   user: ' || system_user_name() );&#xA;ETL_PRINT( '        **   status info: ' || $p_status_info );&#xA;ETL_PRINT( '        ********************************' );&#xA;ETL_PRINT( '        ********************************' );&#xA;&#xA;return NULL;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
<DIAttribute name="Parallelizable" value="no"/>
<DIAttribute name="isScriptValidationFunction" value="no"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="IN" name="$p_status_info" datatype="VARCHAR" size="400" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_status_text" datatype="VARCHAR" size="400" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($p_process_id IS  NULL )" >
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$p_process_id" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('ENTERED THE JOB CATCH BEFORE THE PROCESS_ID COULD BE SET (debug mode specific error)')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="ENTERED THE JOB CATCH BEFORE THE PROCESS_ID COULD BE SET (debug mode specific error)" datatype="VARCHAR" size="84" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('AN ERROR RAISED BEFORE the execution of the job start script (this exception will not be recorded by ABC infrastructure)')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="AN ERROR RAISED BEFORE the execution of the job start script (this exception will not be recorded by ABC infrastructure)" datatype="VARCHAR" size="120" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
<DIAssignmentStep typeId="12" variable="$l_status_text" >
<DIExpression isString="true" expr="replace_substr($p_status_info, '\'', '\'\'')" >
<FUNCTION_CALL name="replace_substr"  type="DI" >
<VARIABLE_REFERENCE name="$p_status_info" />
<CONSTANT value="'" datatype="VARCHAR" size="1" />
<CONSTANT value="''" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_RT&#xA;                 set STATE = \'FINISHED\', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127), STATUS = \'ERROR\', STATUS_INFO = {$l_status_text}&#xA;                 where  MD_PROCESS_ID = {$p_process_id} ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_RT&#xA;                 set STATE = 'FINISHED', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127), STATUS = 'ERROR', STATUS_INFO = {$l_status_text}&#xA;                 where  MD_PROCESS_ID = {$p_process_id} " datatype="VARCHAR" size="241" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIElse>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ** The Job : [job_name()] FAILED')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ** The Job : [job_name()] FAILED" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   user: ' || system_user_name()))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   user: " datatype="VARCHAR" size="19" />
<FUNCTION_CALL name="system_user_name"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   status info: ' || $p_status_info))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   status info: " datatype="VARCHAR" size="26" />
<VARIABLE_REFERENCE name="$p_status_info" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="ABC_FAILWF_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="# IN EVENT THE WORKFLOW FAILED, UPDATE WORKFLOW RECORD WITH FAIL STATUS&#xA;&#xA;$l_status_text = replace_substr( $p_status_info, '\'','\'\'');&#xA;&#xA;sql('DW_ABC_DS','update JOB_STREAM_STEP_DETAIL_RT&#xA;                 set STATUS = \'ERROR\', STATUS_INFO = {$l_status_text}, END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                 where  MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ');&#xA;&#xA;ETL_PRINT( '        ** The workflow: [workflow_name()] FAILED' );&#xA;ETL_PRINT( '        **   user: ' || system_user_name() );&#xA;ETL_PRINT( '        **   status info: ' || $p_status_info );&#xA;ETL_PRINT( '        **   detail name: ' || $p_detailname );&#xA;ETL_PRINT( '        ********************************' );&#xA;ETL_PRINT( '        ********************************' );&#xA;&#xA;return NULL;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_detailname" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="IN" name="$p_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="IN" name="$p_status_info" datatype="VARCHAR" size="400" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_status_text" datatype="VARCHAR" size="400" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIAssignmentStep typeId="12" variable="$l_status_text" >
<DIExpression isString="true" expr="replace_substr($p_status_info, '\'', '\'\'')" >
<FUNCTION_CALL name="replace_substr"  type="DI" >
<VARIABLE_REFERENCE name="$p_status_info" />
<CONSTANT value="'" datatype="VARCHAR" size="1" />
<CONSTANT value="''" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_DETAIL_RT&#xA;                 set STATUS = \'ERROR\', STATUS_INFO = {$l_status_text}, END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                 where  MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_DETAIL_RT&#xA;                 set STATUS = 'ERROR', STATUS_INFO = {$l_status_text}, END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                 where  MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} " datatype="VARCHAR" size="262" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ** The workflow: [workflow_name()] FAILED')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ** The workflow: [workflow_name()] FAILED" datatype="VARCHAR" size="49" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   user: ' || system_user_name()))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   user: " datatype="VARCHAR" size="19" />
<FUNCTION_CALL name="system_user_name"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   status info: ' || $p_status_info))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   status info: " datatype="VARCHAR" size="26" />
<VARIABLE_REFERENCE name="$p_status_info" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   detail name: ' || $p_detailname))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   detail name: " datatype="VARCHAR" size="26" />
<VARIABLE_REFERENCE name="$p_detailname" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="ABC_STARTJB_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="#$l_job_start_date = sysdate( );&#xD;&#xA;$l_job_start_date = sql('DW_ABC_DS','select getdate()');&#xD;&#xA;$l_job_start_date_vchar = sql('DW_ABC_DS','select convert(varchar(25),convert(datetime,{$l_job_start_date},111),127)');&#xD;&#xA;ETL_PRINT('l_job_start_date_vchar = '|| $l_job_start_date_vchar);&#xD;&#xA;#sql('DW_ABC_DS','select convert(datetime,GETDATE()-5,111)');&#xD;&#xA;#;&#xA;# the job may have been called from the DW scheduler as part of a job stream&#xA;# or it may be launched manually &#xA;# if the job is called as part of a job stream&#xA;#   then its row in DW_ABC_DS.STEP_RUNTIME identified by $G_STEP_RT_ID  has already &#xA;#   been created with a WAITING status&#xA;# else&#xA;#   the job has been launched out of a stream context, it will create its own entry &#xA;#   flagged as MANUAL in DW_ABC_DS.STEP_RUNTIME&#xA;       &#xA;if ($p_debug_mode is null or not $p_debug_mode = 1)&#xA;  begin&#xA;    if ($p_process_id is null)&#xA;      begin&#xA;&#x9;    ETL_PRINT( 'ERROR: $G_PROCESS_ID is not set. If you want to run manually the job, you must set $G_DEBUG_MODE=1' );&#xA;        raise_exception('$G_PROCESS_ID is not set. If you want to run manually the job, you must set $G_DEBUG_MODE=1');&#xA;      end&#xA;    # retrieve the batch id from the STEP_RUNTIME table&#xA;    $p_batch_id = sql('DW_ABC_DS',&#xA;      'SELECT MD_BATCH_ID FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}');&#xA;    if ($p_batch_id is null)&#xA;      begin&#xA;&#x9;    ETL_PRINT( 'ERROR: Process ' || $p_process_id || ' not found in STEP_RUNTIME table.' );&#xA;        raise_exception('process '||$p_process_id||' is not found in STEP_RUNTIME table.');&#xA;      end&#xA;  end&#xA;else&#xA;  begin&#xA;    if ($p_process_id is not null)&#xA;      begin&#xA;&#x9;    ETL_PRINT( 'ERROR: abC usage error detected : $G_DEBUG_MODE is set to ' || $p_debug_mode || ' but $G_PROCESS_ID is not null (set to '||$p_process_id||'). In debug mode Process ID will be allocated by the job and cannot be specified');&#xA;        raise_exception('ERROR: abC usage error detected : $G_DEBUG_MODE is set to ' || $p_debug_mode || ' but $G_PROCESS_ID is not null (set to '||$p_process_id||'). in debug mode Process ID will be allocated by the system and cannot be specified');&#xA;      end&#xA;    # create the job level row in DW_ABC_DS.STEP_RUNTIME note that only a basic row without start dates is created &#xA;  &#x9;# this will be done in code shared for scheduled and manual rows&#xA;&#xD;&#xA;#    sql('DW_ABC_DS','insert into JOB_STREAM_STEP_RT (JOB_NAME, START_TIME, STEP_OWNER, STATE) &#xA;#                     VALUES ({job_name()},{$l_job_start_date}, \'MANUAL\', \'STARTING\')');&#xA;&#xD;&#xA;    sql('DW_ABC_DS','insert into JOB_STREAM_STEP_RT (JOB_NAME, START_TIME, STEP_OWNER, STATE) &#xA;                     VALUES ({job_name()},{$l_job_start_date_vchar}, \'MANUAL\', \'STARTING\')');&#xA;  &#x9;# retrieve the row ID affected by the DB, this ID will be used for any future reference to the STEP_RUNTIME table&#xA;# &#x9;$p_process_id = sql('DW_ABC_DS','SELECT MD_PROCESS_ID from JOB_STREAM_STEP_RT where JOB_NAME = {job_name()} AND START_TIME = {$l_job_start_date} AND STEP_OWNER = \'MANUAL\' AND STATE =  \'STARTING\' ');&#xA;#&#x9;ETL_PRINT( 'After manual launch, the assigned Process ID is: ' || $p_process_id );&#xA;&#xD;&#xA; &#x9;$p_process_id = sql('DW_ABC_DS','SELECT MD_PROCESS_ID from JOB_STREAM_STEP_RT where JOB_NAME = {job_name()} AND START_TIME = {$l_job_start_date_vchar} AND STEP_OWNER = \'MANUAL\' AND STATE =  \'STARTING\' ');&#xA;&#x9;ETL_PRINT( 'After manual launch, the assigned Process ID is: ' || $p_process_id );&#xA;&#x9;# No new batch is created in debug mode, but set 0 to batch-id variable to have a not null value&#xA;&#x9;$p_batch_id = 0;&#xA;  end&#xA;&#xA;&#xA;ETL_PRINT ( 'Process ' || $p_process_id || ' retrieved $p_batch_id = {$p_batch_id}' );&#xA;$l_state = sql('DW_ABC_DS',&#xA;      'SELECT STATE FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}');&#xA;$l_job_name = sql('DW_ABC_DS',&#xA;      'SELECT JOB_NAME FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}');&#xA;&#xA;if ($l_state != 'STARTING' )&#xA;begin&#xA;    sql('DW_ABC_DS','update JOB_STREAM_STEP_RT set STATUS_INFO = \'Tried to run job, but it is not in a runnable state.\' &#xA;         where MD_PROCESS_ID = {$p_process_id}');&#xA;    raise_exception('ERROR: This job is not in a runnable state. This may come from Web Service timeout, the job will not execute and a new one will be trigered by ABC (if not already done)');&#xA;end&#xA;&#xA;if ($l_job_name != job_name() )&#xA;begin&#xA;   # sql('DW_ABC_DS','update JOB_STREAM_STEP_RT set STATUS_INFO = \'This job, {job_name()}, does not match the JOB_NAME of the step you are trying to run ($l_job_name).\' &#xA;   #      where MD_PROCESS_ID = {$p_process_id}');&#xA;    raise_exception('ERROR: This job, {job_name()}, does not match the JOB_NAME of the step you are trying to run (' || $l_job_name || ').');&#xA;end&#xA;&#xA;# now flag the job as running&#xD;&#xA;#sql('DW_ABC_DS','update JOB_STREAM_STEP_RT set STATE = \'RUNNING\',&#xA;#JOB_NAME = {job_name()}, START_TIME = convert(datetime,{$l_job_start_date},111)&#xA;#where MD_PROCESS_ID = {$p_process_id}');&#xA;sql('DW_ABC_DS','update JOB_STREAM_STEP_RT set STATE = \'RUNNING\',&#xA;JOB_NAME = {job_name()}, START_TIME = {$l_job_start_date_vchar}&#xA;where MD_PROCESS_ID = {$p_process_id}');&#xA;&#xA;set_env( 'ETL_DEBUG_MODE', $p_debug_mode );&#xA;set_env( 'ETL_BATCH_ID', $p_batch_id);&#xA;set_env( 'ETL_PROCESS_ID', $p_process_id );&#xA;if ( is_set_env( 'ETL_TRACE_LEVEL' ) != 1 )&#xA;begin&#xA;&#x9;set_env( 'ETL_TRACE_LEVEL', 'ALL' );&#xA;end&#xA;&#xA;ETL_PRINT( '********************************' );&#xA;ETL_PRINT( '********************************' );&#xA;ETL_PRINT( '** The Job {job_name()} is starting' || ifthenelse((get_env('ETL_DEBUG_MODE') = '1'), ' in Debug mode', '') || '.');&#xA;ETL_PRINT( '**' );&#xA;ETL_PRINT( '**' );&#xA;&#xA;return (5);&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
</DIProperties>
<DIParameters><DIElement paramType="IN_OUT" name="$p_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="IN" name="$p_debug_mode" datatype="INT" >
</DIElement>
<DIElement paramType="OUT" name="$p_batch_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_previous_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_sqltext" datatype="VARCHAR" size="80" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_job_start_date" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_state" datatype="VARCHAR" size="30" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_job_name" datatype="VARCHAR" size="60" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_job_start_date_vchar" datatype="VARCHAR" size="25" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="DATETIME" />
<DISteps>
<DIAssignmentStep typeId="12" variable="$l_job_start_date" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'select getdate()')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="select getdate()" datatype="VARCHAR" size="16" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$l_job_start_date_vchar" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'select convert(varchar(25),convert(datetime,{$l_job_start_date},111),127)')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="select convert(varchar(25),convert(datetime,{$l_job_start_date},111),127)" datatype="VARCHAR" size="73" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('l_job_start_date_vchar = ' || $l_job_start_date_vchar))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="l_job_start_date_vchar = " datatype="VARCHAR" size="25" />
<VARIABLE_REFERENCE name="$l_job_start_date_vchar" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(($p_debug_mode IS  NULL ) OR&#xA;   ( not ($p_debug_mode = 1)))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$p_debug_mode" />
</LOGICAL_OP>
<LOGICAL_OP op="NOT">
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$p_debug_mode" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($p_process_id IS  NULL )" >
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$p_process_id" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('ERROR: $G_PROCESS_ID is not set. If you want to run manually the job, you must set $G_DEBUG_MODE=1')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="ERROR: $G_PROCESS_ID is not set. If you want to run manually the job, you must set $G_DEBUG_MODE=1" datatype="VARCHAR" size="98" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="raise_exception('$G_PROCESS_ID is not set. If you want to run manually the job, you must set $G_DEBUG_MODE=1')" >
<FUNCTION_CALL name="raise_exception"  type="DI" >
<CONSTANT value="$G_PROCESS_ID is not set. If you want to run manually the job, you must set $G_DEBUG_MODE=1" datatype="VARCHAR" size="91" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
<DIAssignmentStep typeId="12" variable="$p_batch_id" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'SELECT MD_BATCH_ID FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="SELECT MD_BATCH_ID FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}" datatype="VARCHAR" size="80" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($p_batch_id IS  NULL )" >
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$p_batch_id" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((('ERROR: Process ' || $p_process_id) || ' not found in STEP_RUNTIME table.'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="ERROR: Process " datatype="VARCHAR" size="15" />
<VARIABLE_REFERENCE name="$p_process_id" />
</CONCAT>
<CONSTANT value=" not found in STEP_RUNTIME table." datatype="VARCHAR" size="33" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="raise_exception((('process ' || $p_process_id) || ' is not found in STEP_RUNTIME table.'))" >
<FUNCTION_CALL name="raise_exception"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="process " datatype="VARCHAR" size="8" />
<VARIABLE_REFERENCE name="$p_process_id" />
</CONCAT>
<CONSTANT value=" is not found in STEP_RUNTIME table." datatype="VARCHAR" size="36" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIIf>
<DIElse>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($p_process_id IS NOT  NULL )" >
<LOGICAL_OP op="IS NOT NULL">
<VARIABLE_REFERENCE name="$p_process_id" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((('ERROR: abC usage error detected : $G_DEBUG_MODE is set to ' || $p_debug_mode) || ' but $G_PROCESS_ID is not null (set to ') || $p_process_id) || '). In debug mode Process ID will be allocated by the job and cannot be specified'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="ERROR: abC usage error detected : $G_DEBUG_MODE is set to " datatype="VARCHAR" size="58" />
<VARIABLE_REFERENCE name="$p_debug_mode" />
</CONCAT>
<CONSTANT value=" but $G_PROCESS_ID is not null (set to " datatype="VARCHAR" size="39" />
</CONCAT>
<VARIABLE_REFERENCE name="$p_process_id" />
</CONCAT>
<CONSTANT value="). In debug mode Process ID will be allocated by the job and cannot be specified" datatype="VARCHAR" size="80" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="raise_exception((((('ERROR: abC usage error detected : $G_DEBUG_MODE is set to ' || $p_debug_mode) || ' but $G_PROCESS_ID is not null (set to ') || $p_process_id) || '). in debug mode Process ID will be allocated by the system and cannot be specified'))" >
<FUNCTION_CALL name="raise_exception"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="ERROR: abC usage error detected : $G_DEBUG_MODE is set to " datatype="VARCHAR" size="58" />
<VARIABLE_REFERENCE name="$p_debug_mode" />
</CONCAT>
<CONSTANT value=" but $G_PROCESS_ID is not null (set to " datatype="VARCHAR" size="39" />
</CONCAT>
<VARIABLE_REFERENCE name="$p_process_id" />
</CONCAT>
<CONSTANT value="). in debug mode Process ID will be allocated by the system and cannot be specified" datatype="VARCHAR" size="83" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'insert into JOB_STREAM_STEP_RT (JOB_NAME, START_TIME, STEP_OWNER, STATE) &#xA;                     VALUES ({job_name()},{$l_job_start_date_vchar}, \'MANUAL\', \'STARTING\')')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="insert into JOB_STREAM_STEP_RT (JOB_NAME, START_TIME, STEP_OWNER, STATE) &#xA;                     VALUES ({job_name()},{$l_job_start_date_vchar}, 'MANUAL', 'STARTING')" datatype="VARCHAR" size="164" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$p_process_id" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'SELECT MD_PROCESS_ID from JOB_STREAM_STEP_RT where JOB_NAME = {job_name()} AND START_TIME = {$l_job_start_date_vchar} AND STEP_OWNER = \'MANUAL\' AND STATE =  \'STARTING\' ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="SELECT MD_PROCESS_ID from JOB_STREAM_STEP_RT where JOB_NAME = {job_name()} AND START_TIME = {$l_job_start_date_vchar} AND STEP_OWNER = 'MANUAL' AND STATE =  'STARTING' " datatype="VARCHAR" size="168" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('After manual launch, the assigned Process ID is: ' || $p_process_id))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="After manual launch, the assigned Process ID is: " datatype="VARCHAR" size="49" />
<VARIABLE_REFERENCE name="$p_process_id" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$p_batch_id" >
<DIExpression isString="true" expr="0" >
<CONSTANT value="0" datatype="INT" />
</DIExpression>
</DIAssignmentStep>
</DIElse>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((('Process ' || $p_process_id) || ' retrieved $p_batch_id = {$p_batch_id}'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="Process " datatype="VARCHAR" size="8" />
<VARIABLE_REFERENCE name="$p_process_id" />
</CONCAT>
<CONSTANT value=" retrieved $p_batch_id = {$p_batch_id}" datatype="VARCHAR" size="38" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_state" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'SELECT STATE FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="SELECT STATE FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}" datatype="VARCHAR" size="74" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$l_job_name" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'SELECT JOB_NAME FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="SELECT JOB_NAME FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}" datatype="VARCHAR" size="77" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_state != 'STARTING')" >
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$l_state" />
<CONSTANT value="STARTING" datatype="VARCHAR" size="8" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_RT set STATUS_INFO = \'Tried to run job, but it is not in a runnable state.\' &#xA;         where MD_PROCESS_ID = {$p_process_id}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_RT set STATUS_INFO = 'Tried to run job, but it is not in a runnable state.' &#xA;         where MD_PROCESS_ID = {$p_process_id}" datatype="VARCHAR" size="146" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="raise_exception('ERROR: This job is not in a runnable state. This may come from Web Service timeout, the job will not execute and a new one will be trigered by ABC (if not already done)')" >
<FUNCTION_CALL name="raise_exception"  type="DI" >
<CONSTANT value="ERROR: This job is not in a runnable state. This may come from Web Service timeout, the job will not execute and a new one will be trigered by ABC (if not already done)" datatype="VARCHAR" size="168" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_job_name != job_name())" >
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$l_job_name" />
<FUNCTION_CALL name="job_name"  type="DI" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="raise_exception((('ERROR: This job, {job_name()}, does not match the JOB_NAME of the step you are trying to run (' || $l_job_name) || ').'))" >
<FUNCTION_CALL name="raise_exception"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="ERROR: This job, {job_name()}, does not match the JOB_NAME of the step you are trying to run (" datatype="VARCHAR" size="94" />
<VARIABLE_REFERENCE name="$l_job_name" />
</CONCAT>
<CONSTANT value=")." datatype="VARCHAR" size="2" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_RT set STATE = \'RUNNING\',&#xA;JOB_NAME = {job_name()}, START_TIME = {$l_job_start_date_vchar}&#xA;where MD_PROCESS_ID = {$p_process_id}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_RT set STATE = 'RUNNING',&#xA;JOB_NAME = {job_name()}, START_TIME = {$l_job_start_date_vchar}&#xA;where MD_PROCESS_ID = {$p_process_id}" datatype="VARCHAR" size="150" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="set_env('ETL_DEBUG_MODE', $p_debug_mode)" >
<FUNCTION_CALL name="set_env"  type="DI" >
<CONSTANT value="ETL_DEBUG_MODE" datatype="VARCHAR" size="14" />
<VARIABLE_REFERENCE name="$p_debug_mode" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="set_env('ETL_BATCH_ID', $p_batch_id)" >
<FUNCTION_CALL name="set_env"  type="DI" >
<CONSTANT value="ETL_BATCH_ID" datatype="VARCHAR" size="12" />
<VARIABLE_REFERENCE name="$p_batch_id" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="set_env('ETL_PROCESS_ID', $p_process_id)" >
<FUNCTION_CALL name="set_env"  type="DI" >
<CONSTANT value="ETL_PROCESS_ID" datatype="VARCHAR" size="14" />
<VARIABLE_REFERENCE name="$p_process_id" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(is_set_env('ETL_TRACE_LEVEL') != 1)" >
<LOGICAL_OP op="NE">
<FUNCTION_CALL name="is_set_env"  type="DI" >
<CONSTANT value="ETL_TRACE_LEVEL" datatype="VARCHAR" size="15" />
</FUNCTION_CALL>
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="set_env('ETL_TRACE_LEVEL', 'ALL')" >
<FUNCTION_CALL name="set_env"  type="DI" >
<CONSTANT value="ETL_TRACE_LEVEL" datatype="VARCHAR" size="15" />
<CONSTANT value="ALL" datatype="VARCHAR" size="3" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="********************************" datatype="VARCHAR" size="32" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="********************************" datatype="VARCHAR" size="32" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((('** The Job {job_name()} is starting' || ifthenelse((get_env('ETL_DEBUG_MODE') = '1'), ' in Debug mode', '')) || '.'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="** The Job {job_name()} is starting" datatype="VARCHAR" size="35" />
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="get_env"  type="DI" >
<CONSTANT value="ETL_DEBUG_MODE" datatype="VARCHAR" size="14" />
</FUNCTION_CALL>
<CONSTANT value="1" datatype="VARCHAR" size="1" />
</LOGICAL_OP>
<CONSTANT value=" in Debug mode" datatype="VARCHAR" size="14" />
<CONSTANT value="" datatype="VARCHAR" size="0" />
</FUNCTION_CALL>
</CONCAT>
<CONSTANT value="." datatype="VARCHAR" size="1" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr="5" >
<CONSTANT value="5" datatype="INT" />
</DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="ABC_STARTWF_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="ETL_PRINT( '        ********************************' );&#xA;ETL_PRINT( '        ********************************' );&#xA;ETL_PRINT( '        ** The workflow [workflow_name()] is starting' );&#xA;ETL_PRINT( '        **   user: ' || system_user_name() );&#xA;ETL_PRINT( '        **   detail name: ' || $p_detailname );&#xA;&#xA;# DELETE EXISTING WORKFLOW RECORD&#xA;#sql('DW_ABC_DS','delete from RDS_DBA.WFEXECUTION_DW&#xA;#where APPNAME = {$p_appname} AND JOBNAME = {job_name()} AND WFNAME = {workflow_name()}&#xA;#AND TARGET_TABLE = {$l_single_tablename}');&#xA;&#xA;# GET MAX_ID FROM THE WFEXECUTION_DW TABLE&#xA;#$job_ maxkey = sql('DW_ABC_DS', 'SELECT MAX(JOB_ID) FROM RDS_DBA.ETLSYNC_DW');&#xA;#$maxkey = $maxkey + 1;&#xA;&#xA;# INSERT WORKFLOW RECORD&#x9;&#x9;&#xD;&#xA;&#xA;#$l_stepdetail_id = sql('DW_ABC_DS','insert into JOB_STREAM_STEP_DETAIL_RT &#xA;#                (MD_PROCESS_ID, DETAIL_NAME, STATUS, START_TIME)  &#xA;#                VALUES ({$p_process_id}, {$p_detailname}, \'RUNNING\', {sysdate()});&#xA;#&#x9;&#x9;&#x9;&#x9;SELECT SCOPE_IDENTITY() AS NewStepDetailID');&#xA;$l_stepdetail_id = sql('DW_ABC_DS','insert into JOB_STREAM_STEP_DETAIL_RT &#xA;                (MD_PROCESS_ID, DETAIL_NAME, STATUS, START_TIME)  &#xA;                VALUES ({$p_process_id}, {$p_detailname}, \'RUNNING\', convert(varchar(25),convert(datetime,getdate(),111),127));&#xA;&#x9;&#x9;&#x9;&#x9;SELECT SCOPE_IDENTITY() AS NewStepDetailID');&#x9;&#xA;&#xA;set_env(workflow_name(), $l_stepdetail_id);&#xA;&#xA;# print('single_tablename = ' || $l_single_tablename);&#x9;   &#x9;&#xA;&#xA;return null;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_detailname" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="IN" name="$p_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_stepdetail_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ** The workflow [workflow_name()] is starting')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ** The workflow [workflow_name()] is starting" datatype="VARCHAR" size="53" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   user: ' || system_user_name()))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   user: " datatype="VARCHAR" size="19" />
<FUNCTION_CALL name="system_user_name"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   detail name: ' || $p_detailname))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   detail name: " datatype="VARCHAR" size="26" />
<VARIABLE_REFERENCE name="$p_detailname" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_stepdetail_id" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'insert into JOB_STREAM_STEP_DETAIL_RT &#xA;                (MD_PROCESS_ID, DETAIL_NAME, STATUS, START_TIME)  &#xA;                VALUES ({$p_process_id}, {$p_detailname}, \'RUNNING\', convert(varchar(25),convert(datetime,getdate(),111),127));&#xA;&#x9;&#x9;&#x9;&#x9;SELECT SCOPE_IDENTITY() AS NewStepDetailID')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="insert into JOB_STREAM_STEP_DETAIL_RT &#xA;                (MD_PROCESS_ID, DETAIL_NAME, STATUS, START_TIME)  &#xA;                VALUES ({$p_process_id}, {$p_detailname}, 'RUNNING', convert(varchar(25),convert(datetime,getdate(),111),127));&#xA;&#x9;&#x9;&#x9;&#x9;SELECT SCOPE_IDENTITY() AS NewStepDetailID" datatype="VARCHAR" size="280" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="set_env(workflow_name(), $l_stepdetail_id)" >
<FUNCTION_CALL name="set_env"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$l_stepdetail_id" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="ETL_PRINT" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="# 1/2 Retrieve contextual information from the environment&#xA;if ( is_set_env( 'ETL_BATCH_ID' ) = 1 )&#xA;begin&#xA;&#x9;$l_batch_id = get_env( 'ETL_BATCH_ID' );&#xA;end&#xA;else&#xA;begin&#xA;&#x9;$l_batch_id = '-';&#xA;end&#xA;&#xA;if ( is_set_env( 'ETL_PROCESS_ID' ) = 1 )&#xA;begin&#xA;&#x9;$l_process_id = get_env( 'ETL_PROCESS_ID' );&#x9;&#xA;end&#xA;else&#xA;begin&#xA;&#x9;$l_process_id = '-';&#x9;&#xA;end&#xA;&#xA;# 2/2 Really print&#xA;if ( get_env('ETL_TRACE_LEVEL') = 'ALL' )&#xA;begin&#xA;&#x9;if ( is_set_env( workflow_name() ) = 1 )&#xA;&#x9;begin&#xA;&#x9;&#x9;$l_stepdetail_id = get_env( workflow_name() );&#xA;&#x9;&#x9;print( '\[Batch:' || $l_batch_id || '\] \[Proc:' || $l_process_id || '\] \[Detail:' || $l_stepdetail_id || '\] ' || $p_MESSAGE );&#xA;&#x9;end&#xA;&#x9;else&#xA;&#x9;begin&#xA;    &#x9;print( '\[Batch:' || $l_batch_id || '\] \[Proc:' || $l_process_id || '\] ' || $p_MESSAGE );&#xA;&#x9;end&#xA;end&#xA;&#xA;return null;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
<DIAttribute name="Description" value="This function is internal and should NOT be used by application developers.&#xA;&#xA;This function prints the parameter message to the logs with contextual information (batch id, process id) as set by the ABC_STARTJB_FN function.&#xA;&#xA;This trace file is currently the standard Data Services trace file. for instance: C:\Program Files\Business Objects\BusinessObjects Data Services\log\tracelog.txt"/>
<DIAttribute name="Parallelizable" value="no"/>
<DIAttribute name="isScriptValidationFunction" value="no"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_MESSAGE" datatype="VARCHAR" size="256" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_batch_id" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_process_id" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_stepdetail_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(is_set_env('ETL_BATCH_ID') = 1)" >
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="is_set_env"  type="DI" >
<CONSTANT value="ETL_BATCH_ID" datatype="VARCHAR" size="12" />
</FUNCTION_CALL>
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$l_batch_id" >
<DIExpression isString="true" expr="get_env('ETL_BATCH_ID')" >
<FUNCTION_CALL name="get_env"  type="DI" >
<CONSTANT value="ETL_BATCH_ID" datatype="VARCHAR" size="12" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
</DIIf>
<DIElse>
<DIAssignmentStep typeId="12" variable="$l_batch_id" >
<DIExpression isString="true" expr="'-'" >
<CONSTANT value="-" datatype="VARCHAR" size="1" />
</DIExpression>
</DIAssignmentStep>
</DIElse>
</DIIfStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(is_set_env('ETL_PROCESS_ID') = 1)" >
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="is_set_env"  type="DI" >
<CONSTANT value="ETL_PROCESS_ID" datatype="VARCHAR" size="14" />
</FUNCTION_CALL>
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$l_process_id" >
<DIExpression isString="true" expr="get_env('ETL_PROCESS_ID')" >
<FUNCTION_CALL name="get_env"  type="DI" >
<CONSTANT value="ETL_PROCESS_ID" datatype="VARCHAR" size="14" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
</DIIf>
<DIElse>
<DIAssignmentStep typeId="12" variable="$l_process_id" >
<DIExpression isString="true" expr="'-'" >
<CONSTANT value="-" datatype="VARCHAR" size="1" />
</DIExpression>
</DIAssignmentStep>
</DIElse>
</DIIfStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(get_env('ETL_TRACE_LEVEL') = 'ALL')" >
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="get_env"  type="DI" >
<CONSTANT value="ETL_TRACE_LEVEL" datatype="VARCHAR" size="15" />
</FUNCTION_CALL>
<CONSTANT value="ALL" datatype="VARCHAR" size="3" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(is_set_env(workflow_name()) = 1)" >
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="is_set_env"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</FUNCTION_CALL>
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$l_stepdetail_id" >
<DIExpression isString="true" expr="get_env(workflow_name())" >
<FUNCTION_CALL name="get_env"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(((((((('\\[Batch:' || $l_batch_id) || '\\] \\[Proc:') || $l_process_id) || '\\] \\[Detail:') || $l_stepdetail_id) || '\\] ') || $p_MESSAGE))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="\[Batch:" datatype="VARCHAR" size="8" />
<VARIABLE_REFERENCE name="$l_batch_id" />
</CONCAT>
<CONSTANT value="\] \[Proc:" datatype="VARCHAR" size="10" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_process_id" />
</CONCAT>
<CONSTANT value="\] \[Detail:" datatype="VARCHAR" size="12" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_stepdetail_id" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<VARIABLE_REFERENCE name="$p_MESSAGE" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(((((('\\[Batch:' || $l_batch_id) || '\\] \\[Proc:') || $l_process_id) || '\\] ') || $p_MESSAGE))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="\[Batch:" datatype="VARCHAR" size="8" />
<VARIABLE_REFERENCE name="$l_batch_id" />
</CONCAT>
<CONSTANT value="\] \[Proc:" datatype="VARCHAR" size="10" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_process_id" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<VARIABLE_REFERENCE name="$p_MESSAGE" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIElse>
</DIIfStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="FBI_GET_FILELOCATION" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="#this function takes  the target directory for the files&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;# lookup for location&#xD;&#xA; $L_FILE_LOCATION =  lookup_ext([DW_METADATA_DS.DW_METADATA_ALIAS.FILE_LOCATION_INFO, 'PRE_LOAD_CACHE', 'MAX'], &#xD;&#xA;                               [ FILE_LOCATION ], &#xD;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;   [ NULL ], &#xD;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;   [ SOURCE, '=', $P_PRODUCT_NAME ]) &#xD;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;SET(&quot;run_as_separate_process&quot; = 'no');&#xD;&#xA;&#xD;&#xA;# return value&#xD;&#xA;return  $L_FILE_LOCATION;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
<DIAttribute name="Description" value="this function get the target directory for the files from file_location_info"/>
<DIAttribute name="Parallelizable" value="no"/>
<DIAttribute name="isScriptValidationFunction" value="no"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$P_PRODUCT_NAME" datatype="VARCHAR" size="50" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$L_FILE_LOCATION" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="VARCHAR" size="200" />
<DISteps>
<DIAssignmentStep typeId="12" variable="$L_FILE_LOCATION" >
<DIExpression isString="true" expr="lookup_ext([DW_METADATA_DS.DW_METADATA_ALIAS.FILE_LOCATION_INFO, 'PRE_LOAD_CACHE', 'MAX'], [ FILE_LOCATION ], [  NULL  ], [ SOURCE, '=', $P_PRODUCT_NAME ]) &#xA;SET(&quot;run_as_separate_process&quot; = 'no')&#xA;" >
<FUNCTION_CALL name="lookup_ext"  type="DI" tableDatastore="DW_METADATA_DS" tableOwner="DW_METADATA_ALIAS" tableName="FILE_LOCATION_INFO" >
<CONSTANT value="PRE_LOAD_CACHE" datatype="VARCHAR" size="14" />
<CONSTANT value="MAX" datatype="VARCHAR" size="3" />
<VARIABLE_REFERENCE name="$P_PRODUCT_NAME" />
<CONSTANT_NULL /><DIAttributes>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr="$L_FILE_LOCATION" >
<VARIABLE_REFERENCE name="$L_FILE_LOCATION" />
</DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="M_ICPS_GET_MAX_WF_PROCESS_ID" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="#this function returns the max process id for a given workflow&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;if ($P_BATCH_ID &gt; 0 )&#xD;&#xA;&#x9;begin&#xD;&#xA;&#x9;&#x9;$L_SQL = 'SELECT MAX (sd.MD_PROCESS_ID) FROM dwabc.JOB_STREAM_STEP_DETAIL_RT sd where sd.DETAIL_NAME = \''||$P_WF_NAME||'\' and sd.MD_PROCESS_ID in  (SELECT MD_PROCESS_ID FROM dwabc.JOB_STREAM_STEP_RT s WHERE s.MD_BATCH_ID='||$P_BATCH_ID ||' and s.JOB_NAME = \''||$P_JOB_NAME ||'\' )  ';&#xA;&#x9;&#x9;$L_LAST_ProcessID  = sql('DW_ABC_DS',$L_SQL);&#xD;&#xA;&#x9;end&#xD;&#xA;&#xD;&#xA;# RETURN VALUE&#xD;&#xA;return   $L_LAST_ProcessID;&#xD;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
<DIAttribute name="Description" value="this function takes last status per batch over WF"/>
<DIAttribute name="Parallelizable" value="no"/>
<DIAttribute name="isScriptValidationFunction" value="no"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$P_BATCH_ID" datatype="INT" >
</DIElement>
<DIElement paramType="IN" name="$P_WF_NAME" datatype="VARCHAR" size="50" >
</DIElement>
<DIElement paramType="IN" name="$P_JOB_NAME" datatype="VARCHAR" size="50" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$L_LAST_ProcessID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SQL" datatype="VARCHAR" size="600" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="VARCHAR" size="200" />
<DISteps>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($P_BATCH_ID &gt; 0)" >
<LOGICAL_OP op="GT">
<VARIABLE_REFERENCE name="$P_BATCH_ID" />
<CONSTANT value="0" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$L_SQL" >
<DIExpression isString="true" expr="(((((('SELECT MAX (sd.MD_PROCESS_ID) FROM dwabc.JOB_STREAM_STEP_DETAIL_RT sd where sd.DETAIL_NAME = \'' || $P_WF_NAME) || '\' and sd.MD_PROCESS_ID in  (SELECT MD_PROCESS_ID FROM dwabc.JOB_STREAM_STEP_RT s WHERE s.MD_BATCH_ID=') || $P_BATCH_ID) || ' and s.JOB_NAME = \'') || $P_JOB_NAME) || '\' )  ')" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="SELECT MAX (sd.MD_PROCESS_ID) FROM dwabc.JOB_STREAM_STEP_DETAIL_RT sd where sd.DETAIL_NAME = '" datatype="VARCHAR" size="94" />
<VARIABLE_REFERENCE name="$P_WF_NAME" />
</CONCAT>
<CONSTANT value="' and sd.MD_PROCESS_ID in  (SELECT MD_PROCESS_ID FROM dwabc.JOB_STREAM_STEP_RT s WHERE s.MD_BATCH_ID=" datatype="VARCHAR" size="101" />
</CONCAT>
<VARIABLE_REFERENCE name="$P_BATCH_ID" />
</CONCAT>
<CONSTANT value=" and s.JOB_NAME = '" datatype="VARCHAR" size="19" />
</CONCAT>
<VARIABLE_REFERENCE name="$P_JOB_NAME" />
</CONCAT>
<CONSTANT value="' )  " datatype="VARCHAR" size="5" />
</CONCAT>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_LAST_ProcessID" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', $L_SQL)" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<VARIABLE_REFERENCE name="$L_SQL" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
</DIIf>
</DIIfStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr="$L_LAST_ProcessID" >
<VARIABLE_REFERENCE name="$L_LAST_ProcessID" />
</DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="M_ICPS_GET_WF_STATUS" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="#this function takes last status for run extract batch&#xD;&#xA;&#xD;&#xA;if ($P_MAX_PROCESS_ID is not null)&#xD;&#xA;begin&#xA;&#x9;$L_SQL = 'select status from dwabc.JOB_STREAM_STEP_DETAIL_RT where MD_PROCESS_ID = {$P_MAX_PROCESS_ID} and  DETAIL_NAME = {$L_WF_NAME}';&#xA;&#x9;$L_LAST_STATUS  = sql('DW_ABC_DS',$L_SQL);&#x9;&#xA;end&#xD;&#xA;else &#xD;&#xA;begin&#xA;&#x9;$L_LAST_STATUS=null;&#xA;end&#xD;&#xA;&#xD;&#xA;&#x9;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;# return value&#xD;&#xA;return   $L_LAST_STATUS;&#xD;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
<DIAttribute name="Description" value="this function takes last status per batch over WF"/>
<DIAttribute name="Parallelizable" value="no"/>
<DIAttribute name="isScriptValidationFunction" value="no"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$P_MAX_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="IN" name="$L_WF_NAME" datatype="VARCHAR" size="200" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$L_LAST_STATUS" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SQL" datatype="VARCHAR" size="600" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="VARCHAR" size="200" />
<DISteps>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($P_MAX_PROCESS_ID IS NOT  NULL )" >
<LOGICAL_OP op="IS NOT NULL">
<VARIABLE_REFERENCE name="$P_MAX_PROCESS_ID" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$L_SQL" >
<DIExpression isString="true" expr="'select status from dwabc.JOB_STREAM_STEP_DETAIL_RT where MD_PROCESS_ID = {$P_MAX_PROCESS_ID} and  DETAIL_NAME = {$L_WF_NAME}'" >
<CONSTANT value="select status from dwabc.JOB_STREAM_STEP_DETAIL_RT where MD_PROCESS_ID = {$P_MAX_PROCESS_ID} and  DETAIL_NAME = {$L_WF_NAME}" datatype="VARCHAR" size="124" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_LAST_STATUS" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', $L_SQL)" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<VARIABLE_REFERENCE name="$L_SQL" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
</DIIf>
<DIElse>
<DIAssignmentStep typeId="12" variable="$L_LAST_STATUS" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIAssignmentStep>
</DIElse>
</DIIfStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr="$L_LAST_STATUS" >
<VARIABLE_REFERENCE name="$L_LAST_STATUS" />
</DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIJob name="AM_TSNP_JB" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="ALT_TSNP_JB (version 0.13.0-SNAPSHOT)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Fri, 23 Jan 2009 10:49:09"/>
<DIAttribute name="Description" value="The transactional snapshot (AM_TSNP) is a data layer that contains a version of the source data.  The data exists in the state the source was in at the beginning of the previous cycle of execution."/>
<DIAttribute name="Web_Service_Enabled" value="YES"/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_SOURCE_FILELOCATION" datatype="VARCHAR" size="400" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_ARCHIVE_FILELOCATION" datatype="VARCHAR" size="400" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_BATCH_FILE" datatype="VARCHAR" size="400" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_ARCHIVE_BATCH_STATUS" datatype="VARCHAR" size="400" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_DEBUG_MODE" datatype="INT" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_TRACE_MODE" datatype="INT" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_FLAG_DELETE" datatype="VARCHAR" size="6" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_FLAG_UPDATE" datatype="VARCHAR" size="6" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_FLAG_NEW" datatype="VARCHAR" size="6" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_MD_NON_PREFILL_FLAG" datatype="VARCHAR" size="1" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ui_display_name" value="AM_TSNP_JB_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="STARTJB_SC is used to set global variables and initiates the metadata tracking for the Job"/>
<DIAttribute name="ui_display_name" value="STARTJB_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTJB_FN($G_PROCESS_ID, $G_DEBUG_MODE, $G_BATCH_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startjb_fn($G_PROCESS_ID, $G_DEBUG_MODE, $G_BATCH_ID)" >
<FUNCTION_CALL name="abc_startjb_fn"  type="DI" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="0"  calledObjectType="Workflow" name="AM_TSNP_CONTAINER_WF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="ENDJB_SC concludes the metadata for the Job and Adds final Entries into the ABC Tracking system"/>
<DIAttribute name="ui_display_name" value="ENDJB_SC"/>
<DIAttribute name="ui_script_text" value="&#xD;&#xA;$L_SOURCE_FILELOCATION = FBI_GET_FILELOCATION('AM' ) ;&#xD;&#xA;$L_ARCHIVE_FILELOCATION =  FBI_GET_FILELOCATION(  'EXTERNAL_ARCHIVE' ) ;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;               $L_BATCH_FILE = 'call %BTOA_HOME%\\DataWarehouse\\bin\\dw_archive_data_file.bat -processid '||$G_PROCESS_ID||'  -batchid '||$G_BATCH_ID||' -source '||$L_SOURCE_FILELOCATION ||' -destination '|| $L_ARCHIVE_FILELOCATION  ;&#xD;&#xA;               ETL_PRINT( 'L_BATCH_FILE &gt;&gt;&gt; archive command is &gt;&gt;&gt;&gt;&gt;&gt; ' || $L_BATCH_FILE);&#xD;&#xA;               $L_ARCHIVE_BATCH_STATUS = exec('CMD', $L_BATCH_FILE ,8);&#xD;&#xA;               ETL_PRINT( 'ARCHIVE OPERATION ENDED WITH STATUS : ' || $L_ARCHIVE_BATCH_STATUS);&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;ABC_ENDJB_FN($G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_SOURCE_FILELOCATION" >
<DIExpression isString="true" expr="fbi_get_filelocation('AM')" >
<FUNCTION_CALL name="fbi_get_filelocation"  type="DI" >
<CONSTANT value="AM" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_ARCHIVE_FILELOCATION" >
<DIExpression isString="true" expr="fbi_get_filelocation('EXTERNAL_ARCHIVE')" >
<FUNCTION_CALL name="fbi_get_filelocation"  type="DI" >
<CONSTANT value="EXTERNAL_ARCHIVE" datatype="VARCHAR" size="16" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_BATCH_FILE" >
<DIExpression isString="true" expr="((((((('call %BTOA_HOME%\\DataWarehouse\\bin\\dw_archive_data_file.bat -processid ' || $G_PROCESS_ID) || '  -batchid ') || $G_BATCH_ID) || ' -source ') || $L_SOURCE_FILELOCATION) || ' -destination ') || $L_ARCHIVE_FILELOCATION)" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="call %BTOA_HOME%\DataWarehouse\bin\dw_archive_data_file.bat -processid " datatype="VARCHAR" size="71" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</CONCAT>
<CONSTANT value="  -batchid " datatype="VARCHAR" size="11" />
</CONCAT>
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</CONCAT>
<CONSTANT value=" -source " datatype="VARCHAR" size="9" />
</CONCAT>
<VARIABLE_REFERENCE name="$L_SOURCE_FILELOCATION" />
</CONCAT>
<CONSTANT value=" -destination " datatype="VARCHAR" size="14" />
</CONCAT>
<VARIABLE_REFERENCE name="$L_ARCHIVE_FILELOCATION" />
</CONCAT>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('L_BATCH_FILE &gt;&gt;&gt; archive command is &gt;&gt;&gt;&gt;&gt;&gt; ' || $L_BATCH_FILE))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="L_BATCH_FILE &gt;&gt;&gt; archive command is &gt;&gt;&gt;&gt;&gt;&gt; " datatype="VARCHAR" size="43" />
<VARIABLE_REFERENCE name="$L_BATCH_FILE" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$L_ARCHIVE_BATCH_STATUS" >
<DIExpression isString="true" expr="exec('CMD', $L_BATCH_FILE, 8)" >
<FUNCTION_CALL name="exec"  type="DI" >
<CONSTANT value="CMD" datatype="VARCHAR" size="3" />
<VARIABLE_REFERENCE name="$L_BATCH_FILE" />
<CONSTANT value="8" datatype="INT" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('ARCHIVE OPERATION ENDED WITH STATUS : ' || $L_ARCHIVE_BATCH_STATUS))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="ARCHIVE OPERATION ENDED WITH STATUS : " datatype="VARCHAR" size="38" />
<VARIABLE_REFERENCE name="$L_ARCHIVE_BATCH_STATUS" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endjb_fn($G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endjb_fn"  type="DI" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ui_display_name" value="AM_TSNP_JB_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="AM_TSNP_JB_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILJB_FN($G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failjb_fn($G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failjb_fn"  type="DI" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="job_GV_$G_FLAG_DELETE" value="'DEL'"/>
<DIAttribute name="job_GV_$G_FLAG_NEW" value="'NEW'"/>
<DIAttribute name="job_GV_$G_FLAG_UPDATE" value="'UPD'"/>
<DIAttribute name="job_GV_$G_MD_NON_PREFILL_FLAG" value="'D'"/>
<DIAttribute name="job_checkpoint_enabled" value="no"/>
<DIAttribute name="job_collect_statistics" value="no"/>
<DIAttribute name="job_collect_statistics_monitor" value="no"/>
<DIAttribute name="job_enable_assemblers" value="yes"/>
<DIAttribute name="job_enable_audit" value="yes"/>
<DIAttribute name="job_enable_dataquality" value="yes"/>
<DIAttribute name="job_export_repo" value="no"/>
<DIAttribute name="job_export_reports" value="no"/>
<DIAttribute name="job_isrecoverable" value="no"/>
<DIAttribute name="job_mode" value="Multi-Process"/>
<DIAttribute name="job_monitor_sample_rate" value="1000"/>
<DIAttribute name="job_name" value="AM_TSNP_JB"/>
<DIAttribute name="job_print_version" value="no"/>
<DIAttribute name="job_testmode_enabled" value="no"/>
<DIAttribute name="job_trace_abapquery" value="no"/>
<DIAttribute name="job_trace_all" value="no"/>
<DIAttribute name="job_trace_ascomm" value="no"/>
<DIAttribute name="job_trace_assemblers" value="no"/>
<DIAttribute name="job_trace_audit" value="no"/>
<DIAttribute name="job_trace_dataflow" value="yes"/>
<DIAttribute name="job_trace_idoc_file" value="no"/>
<DIAttribute name="job_trace_memory_loader" value="no"/>
<DIAttribute name="job_trace_memory_reader" value="no"/>
<DIAttribute name="job_trace_optimized_dataflow" value="no"/>
<DIAttribute name="job_trace_parallel_execution" value="no"/>
<DIAttribute name="job_trace_rfc_function" value="no"/>
<DIAttribute name="job_trace_row" value="no"/>
<DIAttribute name="job_trace_script" value="no"/>
<DIAttribute name="job_trace_session" value="yes"/>
<DIAttribute name="job_trace_sql_only" value="no"/>
<DIAttribute name="job_trace_sqlfunctions" value="no"/>
<DIAttribute name="job_trace_sqlloaders" value="no"/>
<DIAttribute name="job_trace_sqlreaders" value="no"/>
<DIAttribute name="job_trace_sqltransforms" value="no"/>
<DIAttribute name="job_trace_stored_procedure" value="no"/>
<DIAttribute name="job_trace_table" value="no"/>
<DIAttribute name="job_trace_table_reader" value="no"/>
<DIAttribute name="job_trace_transform" value="no"/>
<DIAttribute name="job_trace_userfunction" value="no"/>
<DIAttribute name="job_trace_usertransform" value="no"/>
<DIAttribute name="job_trace_workflow" value="yes"/>
<DIAttribute name="job_type" value="batch"/>
<DIAttribute name="job_use_statistics" value="yes"/>
<DIAttribute name="locale_codepage" value="&lt;default&gt;"/>
<DIAttribute name="locale_language" value="&lt;default&gt;"/>
<DIAttribute name="locale_territory" value="&lt;default&gt;"/>
</DIAttributes>
</DIJob>
<DIWorkflow name="AM_TSNP_CONTAINER_WF" typeId="2" >
<DIProperties>
<DIAttribute name="Description" value="Developer: John Monfort&#xA;Date: 5/15/2008&#xA;Description: This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables."/>
</DIProperties>
<DISteps>
<DIParallelStep typeId="11" >
<DISteps>
<DICallStep typeId="0"  calledObjectType="Workflow" name="AM_TSNP_CUSTOM_CONT_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="AM_TSNP_GEN_CONT_WF" >
</DICallStep>
</DISteps>
</DIParallelStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="AM_TSNP_CUSTOM_CONT_WF" typeId="2" >
<DISteps>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="AM_TSNP_GEN_CONT_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="ENTITY_LEVEL_CONTAINER_WF (version 0.13.0-SNAPSHOT)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Fri, 23 Jan 2009 10:49:09"/>
<DIAttribute name="Description" value="This workflow is a container for the entities concerned by the ALT TSNP ETL Step. It integrates the following entities:&#xD;&#xA;  - PERSON (version 1)&#xD;&#xA;"/>
</DIProperties>
<DISteps>
<DIParallelStep typeId="11" >
<DISteps>
<DICallStep typeId="0"  calledObjectType="Workflow" name="AM_AMEXPENSELINE_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="AM_AMASSET_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="AM_AMMODEL_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="AM_AMNATURE_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="AM_AMPORTFOLIO_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="AM_AMBUDGLINE_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="AM_AMCONTRACT_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="AM_AMCOSTCENTER_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="AM_AMCURRATE_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="AM_AMCOUNTRY_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="AM_AMLOCATION_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="AM_AMEMPLDEPT_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="AM_AMCOMPANY_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="AM_AMCONTACT_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="AM_AMBUDGCENTER_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="AM_AMBUDGET_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="AM_AMPROJECT_TSNP_WF" >
</DICallStep>
</DISteps>
</DIParallelStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="AM_AMEXPENSELINE_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="Description" value="This workflow is used to process extracts into the transactional snapshot tables."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="AM_AMEXPENSELINE_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow. The script will also be used to populate the local workflow variables."/>
<DIAttribute name="ui_display_name" value="AM_AMEXPENSELINE_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK START OF WORKFLOW&#xD;&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="AM_AMEXPENSELINE_TSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script that calls the custom function that closes the metadata records that are part of tracking the workflow process.&#xA;&#xA;"/>
<DIAttribute name="ui_display_name" value="AM_AMEXPENSELINE_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block contains the script object that calls a custom fail workflow function used to write the metadata for failed jobs."/>
<DIAttribute name="ui_display_name" value="AM_AMEXPENSELINE_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that is used to write the metadata for failed workflows."/>
<DIAttribute name="ui_display_name" value="AM_AMEXPENSELINE_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK FAIL OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="AM_AMEXPENSELINE_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This dataflow sources records from the EXT to TSNP tables. New records in the EXT tables are added to the TSNP table, Update records in EXT are updated in TSNP, and delete records are deleted from the TSNP table."/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="This workflow is used to process extracts into the transactional snapshot tables."/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Map records as insert"/>
<DIAttribute name="ui_display_name" value="MO_INSERT"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_INSERT" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Map records as delete"/>
<DIAttribute name="ui_display_name" value="MO_DELETE"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_DELETE" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This query filters out only the records marked as delete from the EXT table and sets the BATCH and PROCESS_ID fields"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="DBILLING_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date of corresponding expense"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DBILLING_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DBILLING_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date of corresponding expense"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DBILLING_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DEBITCUR" datatype="VARCHAR" size="5" >
<DIAttributes>
<DIAttribute name="Description" value="Debit (currency)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DEBITCUR"/>
</DIAttributes>
</DIElement>
<DIElement name="DNFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DNFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="LASTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Asset"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LASTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LCNTRID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Contract"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LCNTRID"/>
</DIAttributes>
</DIElement>
<DIElement name="LCOSTCATID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Cost type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LCOSTCATID"/>
</DIAttributes>
</DIElement>
<DIElement name="LCOSTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Assigned cost center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LCOSTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LEMPLDEPTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link User"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LEMPLDEPTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LPROJID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Project to which the expense is allocated"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LPROJID"/>
</DIAttributes>
</DIElement>
<DIElement name="MCREDIT" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Credit"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MCREDIT"/>
</DIAttributes>
</DIElement>
<DIElement name="MDEBIT" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Debit"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MDEBIT"/>
</DIAttributes>
</DIElement>
<DIElement name="OCFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.OCFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SESTATUS" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Status"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SESTATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last modified date/time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="TITLE" datatype="VARCHAR" size="150" >
<DIAttributes>
<DIAttribute name="Content_Type" value="TITLE"/>
<DIAttribute name="Description" value="Title"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.TITLE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value="Business Key"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DBILLING_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DBILLING_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DBILLING_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DBILLING_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DEBITCUR" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DEBITCUR" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DNFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DNFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LASTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LASTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LCNTRID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LCNTRID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LCOSTCATID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LCOSTCATID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LCOSTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LCOSTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LEMPLDEPTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LEMPLDEPTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LPROJID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LPROJID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MCREDIT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MCREDIT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MDEBIT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MDEBIT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.OCFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="OCFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SESTATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SESTATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.TITLE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="TITLE" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_QUALIFIER" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Merge new, update, and delete records"/>
<DIAttribute name="ui_display_name" value="MRG_NEW_UPD_DEL"/>
</DIUIOptions>
<DIInputView name="MO_DELETE"  />
<DIInputView name="MO_INSERT"  />
<DIInputView name="MO_UPDATE"  />
<DISchema name="MRG_NEW_UPD_DEL" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This query filters out only the records marked as new from the EXT table and sets the BATCH and PROCESS_ID fields"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="DBILLING_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date of corresponding expense"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DBILLING_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DBILLING_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date of corresponding expense"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DBILLING_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DEBITCUR" datatype="VARCHAR" size="5" >
<DIAttributes>
<DIAttribute name="Description" value="Debit (currency)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DEBITCUR"/>
</DIAttributes>
</DIElement>
<DIElement name="DNFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DNFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="LASTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Asset"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LASTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LCNTRID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Contract"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LCNTRID"/>
</DIAttributes>
</DIElement>
<DIElement name="LCOSTCATID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Cost type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LCOSTCATID"/>
</DIAttributes>
</DIElement>
<DIElement name="LCOSTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Assigned cost center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LCOSTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LEMPLDEPTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link User"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LEMPLDEPTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LPROJID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Project to which the expense is allocated"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LPROJID"/>
</DIAttributes>
</DIElement>
<DIElement name="MCREDIT" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Credit"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MCREDIT"/>
</DIAttributes>
</DIElement>
<DIElement name="MDEBIT" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Debit"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MDEBIT"/>
</DIAttributes>
</DIElement>
<DIElement name="OCFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.OCFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SESTATUS" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Status"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SESTATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last modified date/time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="TITLE" datatype="VARCHAR" size="150" >
<DIAttributes>
<DIAttribute name="Content_Type" value="TITLE"/>
<DIAttribute name="Description" value="Title"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.TITLE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value="Business Key"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DBILLING_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DBILLING_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DBILLING_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DBILLING_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DEBITCUR" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DEBITCUR" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DNFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DNFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LASTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LASTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LCNTRID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LCNTRID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LCOSTCATID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LCOSTCATID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LCOSTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LCOSTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LEMPLDEPTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LEMPLDEPTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LPROJID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LPROJID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MCREDIT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MCREDIT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MDEBIT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MDEBIT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.OCFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="OCFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SESTATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SESTATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.TITLE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="TITLE" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_QUALIFIER" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This query filters out only the records marked as an update from the EXT table and sets the BATCH and PROCESS_ID fields"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="DBILLING_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date of corresponding expense"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DBILLING_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DBILLING_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date of corresponding expense"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DBILLING_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DEBITCUR" datatype="VARCHAR" size="5" >
<DIAttributes>
<DIAttribute name="Description" value="Debit (currency)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DEBITCUR"/>
</DIAttributes>
</DIElement>
<DIElement name="DNFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DNFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="LASTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Asset"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LASTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LCNTRID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Contract"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LCNTRID"/>
</DIAttributes>
</DIElement>
<DIElement name="LCOSTCATID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Cost type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LCOSTCATID"/>
</DIAttributes>
</DIElement>
<DIElement name="LCOSTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Assigned cost center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LCOSTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LEMPLDEPTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link User"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LEMPLDEPTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LPROJID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Project to which the expense is allocated"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LPROJID"/>
</DIAttributes>
</DIElement>
<DIElement name="MCREDIT" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Credit"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MCREDIT"/>
</DIAttributes>
</DIElement>
<DIElement name="MDEBIT" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Debit"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MDEBIT"/>
</DIAttributes>
</DIElement>
<DIElement name="OCFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.OCFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SESTATUS" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Status"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SESTATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last modified date/time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="TITLE" datatype="VARCHAR" size="150" >
<DIAttributes>
<DIAttribute name="Content_Type" value="TITLE"/>
<DIAttribute name="Description" value="Title"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.TITLE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value="Business Key"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DBILLING_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DBILLING_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DBILLING_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DBILLING_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DEBITCUR" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DEBITCUR" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DNFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DNFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LASTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LASTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LCNTRID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LCNTRID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LCOSTCATID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LCOSTCATID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LCOSTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LCOSTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LEMPLDEPTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LEMPLDEPTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LPROJID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LPROJID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MCREDIT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MCREDIT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MDEBIT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MDEBIT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.OCFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="OCFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SESTATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SESTATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.TITLE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="TITLE" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_QUALIFIER" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Map records as update"/>
<DIAttribute name="ui_display_name" value="MO_UPDATE"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_UPDATE" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Query only those records marked as a pre-fill or changed record"/>
<DIAttribute name="ui_acta_from_schema_0" value="AM_AMEXPENSELINE_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(AM_AMEXPENSELINE_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="DBILLING_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date of corresponding expense"/>
<DIAttribute name="ui_mapping_text" value="AM_AMEXPENSELINE_EXT.DBILLING_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DBILLING_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date of corresponding expense"/>
<DIAttribute name="ui_mapping_text" value="AM_AMEXPENSELINE_EXT.DBILLING_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DEBITCUR" datatype="VARCHAR" size="5" >
<DIAttributes>
<DIAttribute name="Description" value="Debit (currency)"/>
<DIAttribute name="ui_mapping_text" value="AM_AMEXPENSELINE_EXT.DEBITCUR"/>
</DIAttributes>
</DIElement>
<DIElement name="DNFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEXPENSELINE_EXT.DNFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="LASTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Asset"/>
<DIAttribute name="ui_mapping_text" value="AM_AMEXPENSELINE_EXT.LASTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LCNTRID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Contract"/>
<DIAttribute name="ui_mapping_text" value="AM_AMEXPENSELINE_EXT.LCNTRID"/>
</DIAttributes>
</DIElement>
<DIElement name="LCOSTCATID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Cost type"/>
<DIAttribute name="ui_mapping_text" value="AM_AMEXPENSELINE_EXT.LCOSTCATID"/>
</DIAttributes>
</DIElement>
<DIElement name="LCOSTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Assigned cost center"/>
<DIAttribute name="ui_mapping_text" value="AM_AMEXPENSELINE_EXT.LCOSTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LEMPLDEPTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link User"/>
<DIAttribute name="ui_mapping_text" value="AM_AMEXPENSELINE_EXT.LEMPLDEPTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LPROJID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Project to which the expense is allocated"/>
<DIAttribute name="ui_mapping_text" value="AM_AMEXPENSELINE_EXT.LPROJID"/>
</DIAttributes>
</DIElement>
<DIElement name="MCREDIT" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Credit"/>
<DIAttribute name="ui_mapping_text" value="AM_AMEXPENSELINE_EXT.MCREDIT"/>
</DIAttributes>
</DIElement>
<DIElement name="MDEBIT" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Debit"/>
<DIAttribute name="ui_mapping_text" value="AM_AMEXPENSELINE_EXT.MDEBIT"/>
</DIAttributes>
</DIElement>
<DIElement name="OCFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEXPENSELINE_EXT.OCFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SESTATUS" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Status"/>
<DIAttribute name="ui_mapping_text" value="AM_AMEXPENSELINE_EXT.SESTATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last modified date/time"/>
<DIAttribute name="ui_mapping_text" value="AM_AMEXPENSELINE_EXT.SRC_LASTMODDATE&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="TITLE" datatype="VARCHAR" size="150" >
<DIAttributes>
<DIAttribute name="Content_Type" value="TITLE"/>
<DIAttribute name="Description" value="Title"/>
<DIAttribute name="ui_mapping_text" value="AM_AMEXPENSELINE_EXT.TITLE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEXPENSELINE_EXT.MD_BATCH_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value="Business Key"/>
<DIAttribute name="ui_mapping_text" value="AM_AMEXPENSELINE_EXT.MD_BUSINESS_KEY&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEXPENSELINE_EXT.MD_FLAG&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEXPENSELINE_EXT.MD_PF_FLAG&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEXPENSELINE_EXT.MD_PROCESS_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEXPENSELINE_EXT.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEXPENSELINE_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="AM_AMEXPENSELINE_EXT.DBILLING_LOC" >
<COLUMN_REFERENCE  qualifier1="AM_AMEXPENSELINE_EXT" column="DBILLING_LOC" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEXPENSELINE_EXT.DBILLING_UTC" >
<COLUMN_REFERENCE  qualifier1="AM_AMEXPENSELINE_EXT" column="DBILLING_UTC" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEXPENSELINE_EXT.DEBITCUR" >
<COLUMN_REFERENCE  qualifier1="AM_AMEXPENSELINE_EXT" column="DEBITCUR" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEXPENSELINE_EXT.DNFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMEXPENSELINE_EXT" column="DNFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEXPENSELINE_EXT.LASTID" >
<COLUMN_REFERENCE  qualifier1="AM_AMEXPENSELINE_EXT" column="LASTID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEXPENSELINE_EXT.LCNTRID" >
<COLUMN_REFERENCE  qualifier1="AM_AMEXPENSELINE_EXT" column="LCNTRID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEXPENSELINE_EXT.LCOSTCATID" >
<COLUMN_REFERENCE  qualifier1="AM_AMEXPENSELINE_EXT" column="LCOSTCATID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEXPENSELINE_EXT.LCOSTID" >
<COLUMN_REFERENCE  qualifier1="AM_AMEXPENSELINE_EXT" column="LCOSTID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEXPENSELINE_EXT.LEMPLDEPTID" >
<COLUMN_REFERENCE  qualifier1="AM_AMEXPENSELINE_EXT" column="LEMPLDEPTID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEXPENSELINE_EXT.LPROJID" >
<COLUMN_REFERENCE  qualifier1="AM_AMEXPENSELINE_EXT" column="LPROJID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEXPENSELINE_EXT.MCREDIT" >
<COLUMN_REFERENCE  qualifier1="AM_AMEXPENSELINE_EXT" column="MCREDIT" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEXPENSELINE_EXT.MDEBIT" >
<COLUMN_REFERENCE  qualifier1="AM_AMEXPENSELINE_EXT" column="MDEBIT" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEXPENSELINE_EXT.OCFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMEXPENSELINE_EXT" column="OCFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEXPENSELINE_EXT.SESTATUS" >
<COLUMN_REFERENCE  qualifier1="AM_AMEXPENSELINE_EXT" column="SESTATUS" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEXPENSELINE_EXT.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="AM_AMEXPENSELINE_EXT" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEXPENSELINE_EXT.TITLE" >
<COLUMN_REFERENCE  qualifier1="AM_AMEXPENSELINE_EXT" column="TITLE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEXPENSELINE_EXT.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMEXPENSELINE_EXT" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEXPENSELINE_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMEXPENSELINE_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEXPENSELINE_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMEXPENSELINE_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEXPENSELINE_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMEXPENSELINE_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEXPENSELINE_EXT.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMEXPENSELINE_EXT" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEXPENSELINE_EXT.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="AM_AMEXPENSELINE_EXT" column="MD_QUALIFIER" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEXPENSELINE_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMEXPENSELINE_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="AM_AMEXPENSELINE_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(AM_AMEXPENSELINE_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="AM_AMEXPENSELINE_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMEXPENSELINE_TSNP" >
<DIInputView name="MRG_NEW_UPD_DEL"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMEXPENSELINE_EXT" >
<DIOutputView name="AM_AMEXPENSELINE_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="AM_AMASSET_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;AM_AMASSET_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_WF_NAME" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_MAX_WF_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="AM_AMASSET_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="AM_AMASSET_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="&#xD;&#xA;#WORKFLOW NAME&#xD;&#xA;$L_WF_NAME = workflow_name();&#xD;&#xA;&#xD;&#xA;# GET MAX PROCESS_ID OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID&#xD;&#xA;$L_MAX_WF_PROCESS_ID=M_ICPS_GET_MAX_WF_PROCESS_ID($G_BATCH_ID,$L_WF_NAME,job_name( ));&#xD;&#xA;&#xD;&#xA;# GET LAST EXECUTION STATUS OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID, ACCORDING TO MAX PROCESS_ID&#xD;&#xA;$L_LATEST_WF_STATUS =M_ICPS_GET_WF_STATUS($L_MAX_WF_PROCESS_ID,$L_WF_NAME );&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_WF_NAME" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_MAX_WF_PROCESS_ID" >
<DIExpression isString="true" expr="m_icps_get_max_wf_process_id($G_BATCH_ID, $L_WF_NAME, job_name())" >
<FUNCTION_CALL name="m_icps_get_max_wf_process_id"  type="DI" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
<FUNCTION_CALL name="job_name"  type="DI" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_LATEST_WF_STATUS" >
<DIExpression isString="true" expr="m_icps_get_wf_status($L_MAX_WF_PROCESS_ID, $L_WF_NAME)" >
<FUNCTION_CALL name="m_icps_get_wf_status"  type="DI" >
<VARIABLE_REFERENCE name="$L_MAX_WF_PROCESS_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DIIfStep typeId="2" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="If_condition" value=" $L_LATEST_WF_STATUS&lt;&gt;'SUCCESS'  or $L_LATEST_WF_STATUS is null"/>
<DIAttribute name="ui_display_name" value="AM_AMASSET_TSNP_CONDITION"/>
</DIUIOptions>
<DIExpression isString="true" expr="(($L_LATEST_WF_STATUS != 'SUCCESS') OR&#xA;   ($L_LATEST_WF_STATUS IS  NULL ))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
<CONSTANT value="SUCCESS" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="AM_AMASSET_TSNP_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_LATEST_WF_STATUS" >
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</DIExpression>
</DIParameterValues>
</DICallStep>
</DIIf>
<DIElse>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="Print"/>
<DIAttribute name="ui_script_text" value="ETL_PRINT('PREVIOS RUN OF WORKFLOW &gt;&gt; '||$L_WF_NAME||' FOR BATCH ID &gt;&gt; '||$G_BATCH_ID||' HAS FINISHED SUCCESSFULLY!');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((('PREVIOS RUN OF WORKFLOW &gt;&gt; ' || $L_WF_NAME) || ' FOR BATCH ID &gt;&gt; ') || $G_BATCH_ID) || ' HAS FINISHED SUCCESSFULLY!'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="PREVIOS RUN OF WORKFLOW &gt;&gt; " datatype="VARCHAR" size="27" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</CONCAT>
<CONSTANT value=" FOR BATCH ID &gt;&gt; " datatype="VARCHAR" size="17" />
</CONCAT>
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</CONCAT>
<CONSTANT value=" HAS FINISHED SUCCESSFULLY!" datatype="VARCHAR" size="27" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DIElse>
</DIIfStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="AM_AMASSET_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="AM_AMASSET_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="AM_AMASSET_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="AM_AMASSET_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DIParameters>
<DIElement paramType="IN" name="$P_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIParameters>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="DACQUISITION" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DACQUISITION"/>
</DIAttributes>
</DIElement>
<DIElement name="DDELIVER" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DDELIVER"/>
</DIAttributes>
</DIElement>
<DIElement name="DDISPOS" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DDISPOS"/>
</DIAttributes>
</DIElement>
<DIElement name="DINSTALL" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DINSTALL"/>
</DIAttributes>
</DIElement>
<DIElement name="DORDER" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DORDER"/>
</DIAttributes>
</DIElement>
<DIElement name="DREQUEST" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DREQUEST"/>
</DIAttributes>
</DIElement>
<DIElement name="LABEL" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LABEL"/>
</DIAttributes>
</DIElement>
<DIElement name="LMAINTCNTRID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LMAINTCNTRID"/>
</DIAttributes>
</DIElement>
<DIElement name="LMODELID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LMODELID"/>
</DIAttributes>
</DIElement>
<DIElement name="LASTID" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LASTID"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DACQUISITION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DACQUISITION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DDELIVER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DDELIVER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DDISPOS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DDISPOS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DINSTALL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DINSTALL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DORDER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DORDER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DREQUEST" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DREQUEST" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LABEL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LABEL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LMAINTCNTRID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LMAINTCNTRID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LMODELID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LMODELID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LASTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LASTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SRC_LASTMODDATE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="DACQUISITION" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DACQUISITION"/>
</DIAttributes>
</DIElement>
<DIElement name="DDELIVER" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DDELIVER"/>
</DIAttributes>
</DIElement>
<DIElement name="DDISPOS" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DDISPOS"/>
</DIAttributes>
</DIElement>
<DIElement name="DINSTALL" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DINSTALL"/>
</DIAttributes>
</DIElement>
<DIElement name="DORDER" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DORDER"/>
</DIAttributes>
</DIElement>
<DIElement name="DREQUEST" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DREQUEST"/>
</DIAttributes>
</DIElement>
<DIElement name="LABEL" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LABEL"/>
</DIAttributes>
</DIElement>
<DIElement name="LMAINTCNTRID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LMAINTCNTRID"/>
</DIAttributes>
</DIElement>
<DIElement name="LMODELID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LMODELID"/>
</DIAttributes>
</DIElement>
<DIElement name="LASTID" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LASTID"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DACQUISITION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DACQUISITION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DDELIVER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DDELIVER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DDISPOS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DDISPOS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DINSTALL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DINSTALL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DORDER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DORDER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DREQUEST" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DREQUEST" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LABEL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LABEL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LMAINTCNTRID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LMAINTCNTRID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LMODELID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LMODELID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LASTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LASTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SRC_LASTMODDATE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="DACQUISITION" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DACQUISITION"/>
</DIAttributes>
</DIElement>
<DIElement name="DDELIVER" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DDELIVER"/>
</DIAttributes>
</DIElement>
<DIElement name="DDISPOS" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DDISPOS"/>
</DIAttributes>
</DIElement>
<DIElement name="DINSTALL" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DINSTALL"/>
</DIAttributes>
</DIElement>
<DIElement name="DORDER" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DORDER"/>
</DIAttributes>
</DIElement>
<DIElement name="DREQUEST" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DREQUEST"/>
</DIAttributes>
</DIElement>
<DIElement name="LABEL" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LABEL"/>
</DIAttributes>
</DIElement>
<DIElement name="LMAINTCNTRID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LMAINTCNTRID"/>
</DIAttributes>
</DIElement>
<DIElement name="LMODELID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LMODELID"/>
</DIAttributes>
</DIElement>
<DIElement name="LASTID" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LASTID"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DACQUISITION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DACQUISITION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DDELIVER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DDELIVER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DDISPOS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DDISPOS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DINSTALL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DINSTALL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DORDER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DORDER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DREQUEST" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DREQUEST" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LABEL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LABEL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LMAINTCNTRID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LMAINTCNTRID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LMODELID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LMODELID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LASTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LASTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SRC_LASTMODDATE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="AM_AMASSET_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(AM_AMASSET_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMASSET_EXT.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMASSET_EXT.MD_PF_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMASSET_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMASSET_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="DACQUISITION" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMASSET_EXT.DACQUISITION"/>
</DIAttributes>
</DIElement>
<DIElement name="DDELIVER" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMASSET_EXT.DDELIVER"/>
</DIAttributes>
</DIElement>
<DIElement name="DDISPOS" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMASSET_EXT.DDISPOS"/>
</DIAttributes>
</DIElement>
<DIElement name="DINSTALL" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMASSET_EXT.DINSTALL"/>
</DIAttributes>
</DIElement>
<DIElement name="DORDER" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMASSET_EXT.DORDER"/>
</DIAttributes>
</DIElement>
<DIElement name="DREQUEST" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMASSET_EXT.DREQUEST"/>
</DIAttributes>
</DIElement>
<DIElement name="LABEL" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMASSET_EXT.LABEL"/>
</DIAttributes>
</DIElement>
<DIElement name="LMAINTCNTRID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMASSET_EXT.LMAINTCNTRID"/>
</DIAttributes>
</DIElement>
<DIElement name="LMODELID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMASSET_EXT.LMODELID"/>
</DIAttributes>
</DIElement>
<DIElement name="LASTID" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMASSET_EXT.LASTID"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMASSET_EXT.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMASSET_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMASSET_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMASSET_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMASSET_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMASSET_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMASSET_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMASSET_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMASSET_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMASSET_EXT.DACQUISITION" >
<COLUMN_REFERENCE  qualifier1="AM_AMASSET_EXT" column="DACQUISITION" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMASSET_EXT.DDELIVER" >
<COLUMN_REFERENCE  qualifier1="AM_AMASSET_EXT" column="DDELIVER" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMASSET_EXT.DDISPOS" >
<COLUMN_REFERENCE  qualifier1="AM_AMASSET_EXT" column="DDISPOS" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMASSET_EXT.DINSTALL" >
<COLUMN_REFERENCE  qualifier1="AM_AMASSET_EXT" column="DINSTALL" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMASSET_EXT.DORDER" >
<COLUMN_REFERENCE  qualifier1="AM_AMASSET_EXT" column="DORDER" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMASSET_EXT.DREQUEST" >
<COLUMN_REFERENCE  qualifier1="AM_AMASSET_EXT" column="DREQUEST" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMASSET_EXT.LABEL" >
<COLUMN_REFERENCE  qualifier1="AM_AMASSET_EXT" column="LABEL" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMASSET_EXT.LMAINTCNTRID" >
<COLUMN_REFERENCE  qualifier1="AM_AMASSET_EXT" column="LMAINTCNTRID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMASSET_EXT.LMODELID" >
<COLUMN_REFERENCE  qualifier1="AM_AMASSET_EXT" column="LMODELID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMASSET_EXT.LASTID" >
<COLUMN_REFERENCE  qualifier1="AM_AMASSET_EXT" column="LASTID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMASSET_EXT.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="AM_AMASSET_EXT" column="SRC_LASTMODDATE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="AM_AMASSET_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(AM_AMASSET_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="AM_AMASSET_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMASSET_EXT" >
<DIOutputView name="AM_AMASSET_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMASSET_TSNP" >
<DIInputView name="CASE_LOAD_FIRST_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
              <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
                <auto_correct_using_merge>Yes</auto_correct_using_merge>
                <bulk_ldr_all_rows/>
                <bulk_ldr_max_errors/>
                <bulk_ldr_rows_per_commit/>
                <enable_partitioning>no</enable_partitioning>
                <ignore_column_case>yes</ignore_column_case>
                <ignore_columns_null>No</ignore_columns_null>
                <ignore_columns_value/>
                <loader_auto_correct>no</loader_auto_correct>
                <loader_bulk_load>0</loader_bulk_load>
                <loader_compare_column>compare_by_name</loader_compare_column>
                <loader_delete_map/>
                <loader_drop_and_create_table>no</loader_drop_and_create_table>
                <loader_insert_map/>
                <loader_load_choice>append</loader_load_choice>
                <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
                <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_AM_AMASSET_TSNP.txt</loader_overflow_file>
                <loader_post_load1/>
                <loader_pre_load1/>
                <loader_quote_names>0</loader_quote_names>
                <loader_transactional>no</loader_transactional>
                <loader_transactional_order>0</loader_transactional_order>
                <loader_update_key_columns>no</loader_update_key_columns>
                <loader_update_map/>
                <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
                <loader_xact_size>1000</loader_xact_size>
                <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
                <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
                <overflow_file_format>Write data</overflow_file_format>
                <overriding_substitution_parameter_for_tablename/>
                <use_overflow_file>no</use_overflow_file>
                <use_unicode_varchar>no</use_unicode_varchar>
                <sql_text/>
              </LDRConfiguration>
            </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>


<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CASE_LOAD_FIRST_RUN" value="$P_LATEST_WF_STATUS IS NULL and ($G_DEBUG_MODE &lt;&gt;1 or $G_DEBUG_MODE IS NULL) and ($G_TRACE_MODE &lt;&gt;1 or $G_TRACE_MODE IS NULL)"/>
<DIAttribute name="CASE_LOAD_RE_RUN" value="DEFAULT"/>
<DIAttribute name="ui_acta_from_schema_0" value="Merge"/>
<DIAttribute name="ui_display_name" value="CASE_LOAD"/>
</DIUIOptions>
<DIInputView name="Merge" />
<DISchema name="CASE_LOAD" >
</DISchema>
<DICase>
<DISwitch label="FIRST_RUN" outputView="CASE_LOAD_FIRST_RUN" isDefault="false">
<DIExpression isString="true" expr="((($P_LATEST_WF_STATUS IS  NULL ) AND&#xA;   (  (($G_DEBUG_MODE != 1) OR&#xA;   ($G_DEBUG_MODE IS  NULL ))  )) AND&#xA;   (  (($G_TRACE_MODE != 1) OR&#xA;   ($G_TRACE_MODE IS  NULL ))  ))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$P_LATEST_WF_STATUS" />
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="RE_RUN" outputView="CASE_LOAD_RE_RUN" isDefault="true">
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMASSET_TSNP" >
<DIInputView name="CASE_LOAD_RE_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
              <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
                <auto_correct_using_merge>Yes</auto_correct_using_merge>
                <bulk_ldr_all_rows/>
                <bulk_ldr_max_errors/>
                <bulk_ldr_rows_per_commit/>
                <enable_partitioning>no</enable_partitioning>
                <ignore_column_case>yes</ignore_column_case>
                <ignore_columns_null>no</ignore_columns_null>
                <ignore_columns_value/>
                <loader_auto_correct>yes</loader_auto_correct>
                <loader_bulk_load>0</loader_bulk_load>
                <loader_compare_column>compare_by_name</loader_compare_column>
                <loader_delete_map/>
                <loader_drop_and_create_table>no</loader_drop_and_create_table>
                <loader_insert_map/>
                <loader_load_choice>append</loader_load_choice>
                <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
                <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_AM_AMASSET_TSNP.txt</loader_overflow_file>
                <loader_post_load1/>
                <loader_pre_load1/>
                <loader_quote_names>0</loader_quote_names>
                <loader_transactional>no</loader_transactional>
                <loader_transactional_order>0</loader_transactional_order>
                <loader_update_key_columns>no</loader_update_key_columns>
                <loader_update_map/>
                <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
                <loader_xact_size>1000</loader_xact_size>
                <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
                <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
                <overflow_file_format>Write data</overflow_file_format>
                <overriding_substitution_parameter_for_tablename/>
                <use_overflow_file>no</use_overflow_file>
                <use_unicode_varchar>no</use_unicode_varchar>
                <sql_text/>
              </LDRConfiguration>
            </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="AM_AMMODEL_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;AM_AMMODEL_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_WF_NAME" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_MAX_WF_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="AM_AMMODEL_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="AM_AMMODEL_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="&#xD;&#xA;#WORKFLOW NAME&#xD;&#xA;$L_WF_NAME = workflow_name();&#xD;&#xA;&#xD;&#xA;# GET MAX PROCESS_ID OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID&#xD;&#xA;$L_MAX_WF_PROCESS_ID=M_ICPS_GET_MAX_WF_PROCESS_ID($G_BATCH_ID,$L_WF_NAME,job_name( ));&#xD;&#xA;&#xD;&#xA;# GET LAST EXECUTION STATUS OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID, ACCORDING TO MAX PROCESS_ID&#xD;&#xA;$L_LATEST_WF_STATUS =M_ICPS_GET_WF_STATUS($L_MAX_WF_PROCESS_ID,$L_WF_NAME );&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_WF_NAME" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_MAX_WF_PROCESS_ID" >
<DIExpression isString="true" expr="m_icps_get_max_wf_process_id($G_BATCH_ID, $L_WF_NAME, job_name())" >
<FUNCTION_CALL name="m_icps_get_max_wf_process_id"  type="DI" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
<FUNCTION_CALL name="job_name"  type="DI" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_LATEST_WF_STATUS" >
<DIExpression isString="true" expr="m_icps_get_wf_status($L_MAX_WF_PROCESS_ID, $L_WF_NAME)" >
<FUNCTION_CALL name="m_icps_get_wf_status"  type="DI" >
<VARIABLE_REFERENCE name="$L_MAX_WF_PROCESS_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DIIfStep typeId="2" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="If_condition" value=" $L_LATEST_WF_STATUS&lt;&gt;'SUCCESS'  or $L_LATEST_WF_STATUS is null"/>
<DIAttribute name="ui_display_name" value="AM_AMMODEL_TSNP_CONDITION"/>
</DIUIOptions>
<DIExpression isString="true" expr="(($L_LATEST_WF_STATUS != 'SUCCESS') OR&#xA;   ($L_LATEST_WF_STATUS IS  NULL ))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
<CONSTANT value="SUCCESS" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="AM_AMMODEL_TSNP_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_LATEST_WF_STATUS" >
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</DIExpression>
</DIParameterValues>
</DICallStep>
</DIIf>
<DIElse>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="Print"/>
<DIAttribute name="ui_script_text" value="ETL_PRINT('PREVIOS RUN OF WORKFLOW &gt;&gt; '||$L_WF_NAME||' FOR BATCH ID &gt;&gt; '||$G_BATCH_ID||' HAS FINISHED SUCCESSFULLY!');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((('PREVIOS RUN OF WORKFLOW &gt;&gt; ' || $L_WF_NAME) || ' FOR BATCH ID &gt;&gt; ') || $G_BATCH_ID) || ' HAS FINISHED SUCCESSFULLY!'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="PREVIOS RUN OF WORKFLOW &gt;&gt; " datatype="VARCHAR" size="27" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</CONCAT>
<CONSTANT value=" FOR BATCH ID &gt;&gt; " datatype="VARCHAR" size="17" />
</CONCAT>
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</CONCAT>
<CONSTANT value=" HAS FINISHED SUCCESSFULLY!" datatype="VARCHAR" size="27" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DIElse>
</DIIfStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="AM_AMMODEL_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="AM_AMMODEL_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="AM_AMMODEL_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="AM_AMMODEL_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DIParameters>
<DIElement paramType="IN" name="$P_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIParameters>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="CPUTYPE" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CPUTYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="INSTOS" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.INSTOS"/>
</DIAttributes>
</DIElement>
<DIElement name="LMEMORYSIZEMB" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LMEMORYSIZEMB"/>
</DIAttributes>
</DIElement>
<DIElement name="LNATUREID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LNATUREID"/>
</DIAttributes>
</DIElement>
<DIElement name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LPARENTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LMODELID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LMODELID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CPUTYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CPUTYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.INSTOS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="INSTOS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LMEMORYSIZEMB" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LMEMORYSIZEMB" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LNATUREID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LNATUREID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LPARENTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LPARENTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LMODELID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LMODELID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SRC_LASTMODDATE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="CPUTYPE" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CPUTYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="INSTOS" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.INSTOS"/>
</DIAttributes>
</DIElement>
<DIElement name="LMEMORYSIZEMB" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LMEMORYSIZEMB"/>
</DIAttributes>
</DIElement>
<DIElement name="LNATUREID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LNATUREID"/>
</DIAttributes>
</DIElement>
<DIElement name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LPARENTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LMODELID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LMODELID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CPUTYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CPUTYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.INSTOS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="INSTOS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LMEMORYSIZEMB" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LMEMORYSIZEMB" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LNATUREID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LNATUREID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LPARENTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LPARENTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LMODELID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LMODELID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SRC_LASTMODDATE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="CPUTYPE" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CPUTYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="INSTOS" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.INSTOS"/>
</DIAttributes>
</DIElement>
<DIElement name="LMEMORYSIZEMB" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LMEMORYSIZEMB"/>
</DIAttributes>
</DIElement>
<DIElement name="LNATUREID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LNATUREID"/>
</DIAttributes>
</DIElement>
<DIElement name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LPARENTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LMODELID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LMODELID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CPUTYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CPUTYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.INSTOS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="INSTOS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LMEMORYSIZEMB" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LMEMORYSIZEMB" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LNATUREID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LNATUREID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LPARENTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LPARENTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LMODELID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LMODELID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SRC_LASTMODDATE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="AM_AMMODEL_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(AM_AMMODEL_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMMODEL_EXT.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMMODEL_EXT.MD_PF_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMMODEL_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMMODEL_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="CPUTYPE" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMMODEL_EXT.CPUTYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="INSTOS" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMMODEL_EXT.INSTOS"/>
</DIAttributes>
</DIElement>
<DIElement name="LMEMORYSIZEMB" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMMODEL_EXT.LMEMORYSIZEMB"/>
</DIAttributes>
</DIElement>
<DIElement name="LNATUREID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMMODEL_EXT.LNATUREID"/>
</DIAttributes>
</DIElement>
<DIElement name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMMODEL_EXT.LPARENTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LMODELID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMMODEL_EXT.LMODELID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMMODEL_EXT.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMMODEL_EXT.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMMODEL_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMMODEL_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMMODEL_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMMODEL_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMMODEL_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMMODEL_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMMODEL_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMMODEL_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMMODEL_EXT.CPUTYPE" >
<COLUMN_REFERENCE  qualifier1="AM_AMMODEL_EXT" column="CPUTYPE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMMODEL_EXT.INSTOS" >
<COLUMN_REFERENCE  qualifier1="AM_AMMODEL_EXT" column="INSTOS" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMMODEL_EXT.LMEMORYSIZEMB" >
<COLUMN_REFERENCE  qualifier1="AM_AMMODEL_EXT" column="LMEMORYSIZEMB" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMMODEL_EXT.LNATUREID" >
<COLUMN_REFERENCE  qualifier1="AM_AMMODEL_EXT" column="LNATUREID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMMODEL_EXT.LPARENTID" >
<COLUMN_REFERENCE  qualifier1="AM_AMMODEL_EXT" column="LPARENTID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMMODEL_EXT.LMODELID" >
<COLUMN_REFERENCE  qualifier1="AM_AMMODEL_EXT" column="LMODELID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMMODEL_EXT.NAME" >
<COLUMN_REFERENCE  qualifier1="AM_AMMODEL_EXT" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMMODEL_EXT.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="AM_AMMODEL_EXT" column="SRC_LASTMODDATE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="AM_AMMODEL_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(AM_AMMODEL_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="AM_AMMODEL_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMMODEL_EXT" >
<DIOutputView name="AM_AMMODEL_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMMODEL_TSNP" >
<DIInputView name="CASE_LOAD_FIRST_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
              <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
                <auto_correct_using_merge>Yes</auto_correct_using_merge>
                <bulk_ldr_all_rows/>
                <bulk_ldr_max_errors/>
                <bulk_ldr_rows_per_commit/>
                <enable_partitioning>no</enable_partitioning>
                <ignore_column_case>yes</ignore_column_case>
                <ignore_columns_null>No</ignore_columns_null>
                <ignore_columns_value/>
                <loader_auto_correct>no</loader_auto_correct>
                <loader_bulk_load>0</loader_bulk_load>
                <loader_compare_column>compare_by_name</loader_compare_column>
                <loader_delete_map/>
                <loader_drop_and_create_table>no</loader_drop_and_create_table>
                <loader_insert_map/>
                <loader_load_choice>append</loader_load_choice>
                <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
                <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_AM_AMMODEL_TSNP.txt</loader_overflow_file>
                <loader_post_load1/>
                <loader_pre_load1/>
                <loader_quote_names>0</loader_quote_names>
                <loader_transactional>no</loader_transactional>
                <loader_transactional_order>0</loader_transactional_order>
                <loader_update_key_columns>no</loader_update_key_columns>
                <loader_update_map/>
                <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
                <loader_xact_size>1000</loader_xact_size>
                <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
                <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
                <overflow_file_format>Write data</overflow_file_format>
                <overriding_substitution_parameter_for_tablename/>
                <use_overflow_file>no</use_overflow_file>
                <use_unicode_varchar>no</use_unicode_varchar>
                <sql_text/>
              </LDRConfiguration>
            </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>


<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CASE_LOAD_FIRST_RUN" value="$P_LATEST_WF_STATUS IS NULL and ($G_DEBUG_MODE &lt;&gt;1 or $G_DEBUG_MODE IS NULL) and ($G_TRACE_MODE &lt;&gt;1 or $G_TRACE_MODE IS NULL)"/>
<DIAttribute name="CASE_LOAD_RE_RUN" value="DEFAULT"/>
<DIAttribute name="ui_acta_from_schema_0" value="Merge"/>
<DIAttribute name="ui_display_name" value="CASE_LOAD"/>
</DIUIOptions>
<DIInputView name="Merge" />
<DISchema name="CASE_LOAD" >
</DISchema>
<DICase>
<DISwitch label="FIRST_RUN" outputView="CASE_LOAD_FIRST_RUN" isDefault="false">
<DIExpression isString="true" expr="((($P_LATEST_WF_STATUS IS  NULL ) AND&#xA;   (  (($G_DEBUG_MODE != 1) OR&#xA;   ($G_DEBUG_MODE IS  NULL ))  )) AND&#xA;   (  (($G_TRACE_MODE != 1) OR&#xA;   ($G_TRACE_MODE IS  NULL ))  ))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$P_LATEST_WF_STATUS" />
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="RE_RUN" outputView="CASE_LOAD_RE_RUN" isDefault="true">
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMMODEL_TSNP" >
<DIInputView name="CASE_LOAD_RE_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
              <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
                <auto_correct_using_merge>Yes</auto_correct_using_merge>
                <bulk_ldr_all_rows/>
                <bulk_ldr_max_errors/>
                <bulk_ldr_rows_per_commit/>
                <enable_partitioning>no</enable_partitioning>
                <ignore_column_case>yes</ignore_column_case>
                <ignore_columns_null>no</ignore_columns_null>
                <ignore_columns_value/>
                <loader_auto_correct>yes</loader_auto_correct>
                <loader_bulk_load>0</loader_bulk_load>
                <loader_compare_column>compare_by_name</loader_compare_column>
                <loader_delete_map/>
                <loader_drop_and_create_table>no</loader_drop_and_create_table>
                <loader_insert_map/>
                <loader_load_choice>append</loader_load_choice>
                <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
                <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_AM_AMMODEL_TSNP.txt</loader_overflow_file>
                <loader_post_load1/>
                <loader_pre_load1/>
                <loader_quote_names>0</loader_quote_names>
                <loader_transactional>no</loader_transactional>
                <loader_transactional_order>0</loader_transactional_order>
                <loader_update_key_columns>no</loader_update_key_columns>
                <loader_update_map/>
                <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
                <loader_xact_size>1000</loader_xact_size>
                <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
                <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
                <overflow_file_format>Write data</overflow_file_format>
                <overriding_substitution_parameter_for_tablename/>
                <use_overflow_file>no</use_overflow_file>
                <use_unicode_varchar>no</use_unicode_varchar>
                <sql_text/>
              </LDRConfiguration>
            </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="AM_AMNATURE_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;AM_AMNATURE_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_WF_NAME" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_MAX_WF_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="AM_AMNATURE_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="AM_AMNATURE_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="&#xD;&#xA;#WORKFLOW NAME&#xD;&#xA;$L_WF_NAME = workflow_name();&#xD;&#xA;&#xD;&#xA;# GET MAX PROCESS_ID OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID&#xD;&#xA;$L_MAX_WF_PROCESS_ID=M_ICPS_GET_MAX_WF_PROCESS_ID($G_BATCH_ID,$L_WF_NAME,job_name( ));&#xD;&#xA;&#xD;&#xA;# GET LAST EXECUTION STATUS OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID, ACCORDING TO MAX PROCESS_ID&#xD;&#xA;$L_LATEST_WF_STATUS =M_ICPS_GET_WF_STATUS($L_MAX_WF_PROCESS_ID,$L_WF_NAME );&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_WF_NAME" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_MAX_WF_PROCESS_ID" >
<DIExpression isString="true" expr="m_icps_get_max_wf_process_id($G_BATCH_ID, $L_WF_NAME, job_name())" >
<FUNCTION_CALL name="m_icps_get_max_wf_process_id"  type="DI" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
<FUNCTION_CALL name="job_name"  type="DI" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_LATEST_WF_STATUS" >
<DIExpression isString="true" expr="m_icps_get_wf_status($L_MAX_WF_PROCESS_ID, $L_WF_NAME)" >
<FUNCTION_CALL name="m_icps_get_wf_status"  type="DI" >
<VARIABLE_REFERENCE name="$L_MAX_WF_PROCESS_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DIIfStep typeId="2" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="If_condition" value=" $L_LATEST_WF_STATUS&lt;&gt;'SUCCESS'  or $L_LATEST_WF_STATUS is null"/>
<DIAttribute name="ui_display_name" value="AM_AMNATURE_TSNP_CONDITION"/>
</DIUIOptions>
<DIExpression isString="true" expr="(($L_LATEST_WF_STATUS != 'SUCCESS') OR&#xA;   ($L_LATEST_WF_STATUS IS  NULL ))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
<CONSTANT value="SUCCESS" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="AM_AMNATURE_TSNP_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_LATEST_WF_STATUS" >
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</DIExpression>
</DIParameterValues>
</DICallStep>
</DIIf>
<DIElse>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="Print"/>
<DIAttribute name="ui_script_text" value="ETL_PRINT('PREVIOS RUN OF WORKFLOW &gt;&gt; '||$L_WF_NAME||' FOR BATCH ID &gt;&gt; '||$G_BATCH_ID||' HAS FINISHED SUCCESSFULLY!');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((('PREVIOS RUN OF WORKFLOW &gt;&gt; ' || $L_WF_NAME) || ' FOR BATCH ID &gt;&gt; ') || $G_BATCH_ID) || ' HAS FINISHED SUCCESSFULLY!'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="PREVIOS RUN OF WORKFLOW &gt;&gt; " datatype="VARCHAR" size="27" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</CONCAT>
<CONSTANT value=" FOR BATCH ID &gt;&gt; " datatype="VARCHAR" size="17" />
</CONCAT>
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</CONCAT>
<CONSTANT value=" HAS FINISHED SUCCESSFULLY!" datatype="VARCHAR" size="27" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DIElse>
</DIIfStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="AM_AMNATURE_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="AM_AMNATURE_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="AM_AMNATURE_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="AM_AMNATURE_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DIParameters>
<DIElement paramType="IN" name="$P_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIParameters>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="BSYSTEM" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.BSYSTEM"/>
</DIAttributes>
</DIElement>
<DIElement name="LNATUREID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LNATUREID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="40" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.BSYSTEM" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="BSYSTEM" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LNATUREID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LNATUREID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SRC_LASTMODDATE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="BSYSTEM" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.BSYSTEM"/>
</DIAttributes>
</DIElement>
<DIElement name="LNATUREID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LNATUREID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="40" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.BSYSTEM" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="BSYSTEM" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LNATUREID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LNATUREID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SRC_LASTMODDATE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="BSYSTEM" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.BSYSTEM"/>
</DIAttributes>
</DIElement>
<DIElement name="LNATUREID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LNATUREID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="40" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.BSYSTEM" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="BSYSTEM" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LNATUREID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LNATUREID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SRC_LASTMODDATE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="AM_AMNATURE_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(AM_AMNATURE_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMNATURE_EXT.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMNATURE_EXT.MD_PF_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMNATURE_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMNATURE_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="BSYSTEM" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMNATURE_EXT.BSYSTEM"/>
</DIAttributes>
</DIElement>
<DIElement name="LNATUREID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMNATURE_EXT.LNATUREID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="40" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMNATURE_EXT.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMNATURE_EXT.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMNATURE_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMNATURE_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMNATURE_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMNATURE_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMNATURE_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMNATURE_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMNATURE_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMNATURE_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMNATURE_EXT.BSYSTEM" >
<COLUMN_REFERENCE  qualifier1="AM_AMNATURE_EXT" column="BSYSTEM" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMNATURE_EXT.LNATUREID" >
<COLUMN_REFERENCE  qualifier1="AM_AMNATURE_EXT" column="LNATUREID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMNATURE_EXT.NAME" >
<COLUMN_REFERENCE  qualifier1="AM_AMNATURE_EXT" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMNATURE_EXT.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="AM_AMNATURE_EXT" column="SRC_LASTMODDATE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="AM_AMNATURE_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(AM_AMNATURE_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="AM_AMNATURE_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMNATURE_EXT" >
<DIOutputView name="AM_AMNATURE_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMNATURE_TSNP" >
<DIInputView name="CASE_LOAD_FIRST_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
              <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
                <auto_correct_using_merge>Yes</auto_correct_using_merge>
                <bulk_ldr_all_rows/>
                <bulk_ldr_max_errors/>
                <bulk_ldr_rows_per_commit/>
                <enable_partitioning>no</enable_partitioning>
                <ignore_column_case>yes</ignore_column_case>
                <ignore_columns_null>No</ignore_columns_null>
                <ignore_columns_value/>
                <loader_auto_correct>no</loader_auto_correct>
                <loader_bulk_load>0</loader_bulk_load>
                <loader_compare_column>compare_by_name</loader_compare_column>
                <loader_delete_map/>
                <loader_drop_and_create_table>no</loader_drop_and_create_table>
                <loader_insert_map/>
                <loader_load_choice>append</loader_load_choice>
                <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
                <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_AM_AMNATURE_TSNP.txt</loader_overflow_file>
                <loader_post_load1/>
                <loader_pre_load1/>
                <loader_quote_names>0</loader_quote_names>
                <loader_transactional>no</loader_transactional>
                <loader_transactional_order>0</loader_transactional_order>
                <loader_update_key_columns>no</loader_update_key_columns>
                <loader_update_map/>
                <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
                <loader_xact_size>1000</loader_xact_size>
                <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
                <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
                <overflow_file_format>Write data</overflow_file_format>
                <overriding_substitution_parameter_for_tablename/>
                <use_overflow_file>no</use_overflow_file>
                <use_unicode_varchar>no</use_unicode_varchar>
                <sql_text/>
              </LDRConfiguration>
            </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>


<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CASE_LOAD_FIRST_RUN" value="$P_LATEST_WF_STATUS IS NULL and ($G_DEBUG_MODE &lt;&gt;1 or $G_DEBUG_MODE IS NULL) and ($G_TRACE_MODE &lt;&gt;1 or $G_TRACE_MODE IS NULL)"/>
<DIAttribute name="CASE_LOAD_RE_RUN" value="DEFAULT"/>
<DIAttribute name="ui_acta_from_schema_0" value="Merge"/>
<DIAttribute name="ui_display_name" value="CASE_LOAD"/>
</DIUIOptions>
<DIInputView name="Merge" />
<DISchema name="CASE_LOAD" >
</DISchema>
<DICase>
<DISwitch label="FIRST_RUN" outputView="CASE_LOAD_FIRST_RUN" isDefault="false">
<DIExpression isString="true" expr="((($P_LATEST_WF_STATUS IS  NULL ) AND&#xA;   (  (($G_DEBUG_MODE != 1) OR&#xA;   ($G_DEBUG_MODE IS  NULL ))  )) AND&#xA;   (  (($G_TRACE_MODE != 1) OR&#xA;   ($G_TRACE_MODE IS  NULL ))  ))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$P_LATEST_WF_STATUS" />
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="RE_RUN" outputView="CASE_LOAD_RE_RUN" isDefault="true">
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMNATURE_TSNP" >
<DIInputView name="CASE_LOAD_RE_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
              <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
                <auto_correct_using_merge>Yes</auto_correct_using_merge>
                <bulk_ldr_all_rows/>
                <bulk_ldr_max_errors/>
                <bulk_ldr_rows_per_commit/>
                <enable_partitioning>no</enable_partitioning>
                <ignore_column_case>yes</ignore_column_case>
                <ignore_columns_null>no</ignore_columns_null>
                <ignore_columns_value/>
                <loader_auto_correct>yes</loader_auto_correct>
                <loader_bulk_load>0</loader_bulk_load>
                <loader_compare_column>compare_by_name</loader_compare_column>
                <loader_delete_map/>
                <loader_drop_and_create_table>no</loader_drop_and_create_table>
                <loader_insert_map/>
                <loader_load_choice>append</loader_load_choice>
                <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
                <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_AM_AMNATURE_TSNP.txt</loader_overflow_file>
                <loader_post_load1/>
                <loader_pre_load1/>
                <loader_quote_names>0</loader_quote_names>
                <loader_transactional>no</loader_transactional>
                <loader_transactional_order>0</loader_transactional_order>
                <loader_update_key_columns>no</loader_update_key_columns>
                <loader_update_map/>
                <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
                <loader_xact_size>1000</loader_xact_size>
                <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
                <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
                <overflow_file_format>Write data</overflow_file_format>
                <overriding_substitution_parameter_for_tablename/>
                <use_overflow_file>no</use_overflow_file>
                <use_unicode_varchar>no</use_unicode_varchar>
                <sql_text/>
              </LDRConfiguration>
            </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="AM_AMPORTFOLIO_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;AM_AMPORTFOLIO_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_WF_NAME" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_MAX_WF_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="AM_AMPORTFOLIO_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="AM_AMPORTFOLIO_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="&#xD;&#xA;#WORKFLOW NAME&#xD;&#xA;$L_WF_NAME = workflow_name();&#xD;&#xA;&#xD;&#xA;# GET MAX PROCESS_ID OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID&#xD;&#xA;$L_MAX_WF_PROCESS_ID=M_ICPS_GET_MAX_WF_PROCESS_ID($G_BATCH_ID,$L_WF_NAME,job_name( ));&#xD;&#xA;&#xD;&#xA;# GET LAST EXECUTION STATUS OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID, ACCORDING TO MAX PROCESS_ID&#xD;&#xA;$L_LATEST_WF_STATUS =M_ICPS_GET_WF_STATUS($L_MAX_WF_PROCESS_ID,$L_WF_NAME );&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_WF_NAME" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_MAX_WF_PROCESS_ID" >
<DIExpression isString="true" expr="m_icps_get_max_wf_process_id($G_BATCH_ID, $L_WF_NAME, job_name())" >
<FUNCTION_CALL name="m_icps_get_max_wf_process_id"  type="DI" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
<FUNCTION_CALL name="job_name"  type="DI" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_LATEST_WF_STATUS" >
<DIExpression isString="true" expr="m_icps_get_wf_status($L_MAX_WF_PROCESS_ID, $L_WF_NAME)" >
<FUNCTION_CALL name="m_icps_get_wf_status"  type="DI" >
<VARIABLE_REFERENCE name="$L_MAX_WF_PROCESS_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DIIfStep typeId="2" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="If_condition" value=" $L_LATEST_WF_STATUS&lt;&gt;'SUCCESS'  or $L_LATEST_WF_STATUS is null"/>
<DIAttribute name="ui_display_name" value="AM_AMPORTFOLIO_TSNP_CONDITION"/>
</DIUIOptions>
<DIExpression isString="true" expr="(($L_LATEST_WF_STATUS != 'SUCCESS') OR&#xA;   ($L_LATEST_WF_STATUS IS  NULL ))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
<CONSTANT value="SUCCESS" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="AM_AMPORTFOLIO_TSNP_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_LATEST_WF_STATUS" >
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</DIExpression>
</DIParameterValues>
</DICallStep>
</DIIf>
<DIElse>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="Print"/>
<DIAttribute name="ui_script_text" value="ETL_PRINT('PREVIOS RUN OF WORKFLOW &gt;&gt; '||$L_WF_NAME||' FOR BATCH ID &gt;&gt; '||$G_BATCH_ID||' HAS FINISHED SUCCESSFULLY!');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((('PREVIOS RUN OF WORKFLOW &gt;&gt; ' || $L_WF_NAME) || ' FOR BATCH ID &gt;&gt; ') || $G_BATCH_ID) || ' HAS FINISHED SUCCESSFULLY!'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="PREVIOS RUN OF WORKFLOW &gt;&gt; " datatype="VARCHAR" size="27" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</CONCAT>
<CONSTANT value=" FOR BATCH ID &gt;&gt; " datatype="VARCHAR" size="17" />
</CONCAT>
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</CONCAT>
<CONSTANT value=" HAS FINISHED SUCCESSFULLY!" datatype="VARCHAR" size="27" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DIElse>
</DIIfStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="AM_AMPORTFOLIO_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="AM_AMPORTFOLIO_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="AM_AMPORTFOLIO_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="AM_AMPORTFOLIO_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DIParameters>
<DIElement paramType="IN" name="$P_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIParameters>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSETTAG" datatype="VARCHAR" size="40" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ASSETTAG"/>
</DIAttributes>
</DIElement>
<DIElement name="AVGPRICECUR" datatype="VARCHAR" size="5" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.AVGPRICECUR"/>
</DIAttributes>
</DIElement>
<DIElement name="CODE" datatype="VARCHAR" size="64" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="LASTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LASTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LCOSTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LCOSTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LLOCAID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LLOCAID"/>
</DIAttributes>
</DIElement>
<DIElement name="LMODELID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LMODELID"/>
</DIAttributes>
</DIElement>
<DIElement name="LORGID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LORGID"/>
</DIAttributes>
</DIElement>
<DIElement name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LPARENTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LSUPERVID"/>
</DIAttributes>
</DIElement>
<DIElement name="MAVGPRICE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MAVGPRICE"/>
</DIAttributes>
</DIElement>
<DIElement name="LPORTFOLIOITEMID" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LPORTFOLIOITEMID"/>
</DIAttributes>
</DIElement>
<DIElement name="CMDBID" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CMDBID"/>
</DIAttributes>
</DIElement>
<DIElement name="SEASSIGNMENT" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SEASSIGNMENT"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ASSETTAG" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ASSETTAG" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.AVGPRICECUR" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="AVGPRICECUR" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LASTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LASTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LCOSTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LCOSTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LLOCAID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LLOCAID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LMODELID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LMODELID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LORGID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LORGID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LPARENTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LPARENTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LSUPERVID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LSUPERVID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MAVGPRICE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MAVGPRICE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LPORTFOLIOITEMID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LPORTFOLIOITEMID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CMDBID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CMDBID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SEASSIGNMENT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SEASSIGNMENT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SRC_LASTMODDATE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSETTAG" datatype="VARCHAR" size="40" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ASSETTAG"/>
</DIAttributes>
</DIElement>
<DIElement name="AVGPRICECUR" datatype="VARCHAR" size="5" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.AVGPRICECUR"/>
</DIAttributes>
</DIElement>
<DIElement name="CODE" datatype="VARCHAR" size="64" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="LASTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LASTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LCOSTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LCOSTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LLOCAID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LLOCAID"/>
</DIAttributes>
</DIElement>
<DIElement name="LMODELID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LMODELID"/>
</DIAttributes>
</DIElement>
<DIElement name="LORGID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LORGID"/>
</DIAttributes>
</DIElement>
<DIElement name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LPARENTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LSUPERVID"/>
</DIAttributes>
</DIElement>
<DIElement name="MAVGPRICE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MAVGPRICE"/>
</DIAttributes>
</DIElement>
<DIElement name="LPORTFOLIOITEMID" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LPORTFOLIOITEMID"/>
</DIAttributes>
</DIElement>
<DIElement name="CMDBID" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CMDBID"/>
</DIAttributes>
</DIElement>
<DIElement name="SEASSIGNMENT" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SEASSIGNMENT"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ASSETTAG" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ASSETTAG" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.AVGPRICECUR" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="AVGPRICECUR" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LASTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LASTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LCOSTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LCOSTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LLOCAID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LLOCAID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LMODELID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LMODELID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LORGID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LORGID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LPARENTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LPARENTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LSUPERVID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LSUPERVID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MAVGPRICE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MAVGPRICE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LPORTFOLIOITEMID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LPORTFOLIOITEMID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CMDBID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CMDBID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SEASSIGNMENT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SEASSIGNMENT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SRC_LASTMODDATE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSETTAG" datatype="VARCHAR" size="40" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ASSETTAG"/>
</DIAttributes>
</DIElement>
<DIElement name="AVGPRICECUR" datatype="VARCHAR" size="5" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.AVGPRICECUR"/>
</DIAttributes>
</DIElement>
<DIElement name="CODE" datatype="VARCHAR" size="64" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="LASTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LASTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LCOSTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LCOSTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LLOCAID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LLOCAID"/>
</DIAttributes>
</DIElement>
<DIElement name="LMODELID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LMODELID"/>
</DIAttributes>
</DIElement>
<DIElement name="LORGID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LORGID"/>
</DIAttributes>
</DIElement>
<DIElement name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LPARENTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LSUPERVID"/>
</DIAttributes>
</DIElement>
<DIElement name="MAVGPRICE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MAVGPRICE"/>
</DIAttributes>
</DIElement>
<DIElement name="LPORTFOLIOITEMID" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LPORTFOLIOITEMID"/>
</DIAttributes>
</DIElement>
<DIElement name="CMDBID" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CMDBID"/>
</DIAttributes>
</DIElement>
<DIElement name="SEASSIGNMENT" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SEASSIGNMENT"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ASSETTAG" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ASSETTAG" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.AVGPRICECUR" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="AVGPRICECUR" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LASTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LASTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LCOSTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LCOSTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LLOCAID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LLOCAID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LMODELID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LMODELID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LORGID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LORGID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LPARENTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LPARENTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LSUPERVID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LSUPERVID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MAVGPRICE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MAVGPRICE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LPORTFOLIOITEMID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LPORTFOLIOITEMID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CMDBID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CMDBID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SEASSIGNMENT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SEASSIGNMENT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SRC_LASTMODDATE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="AM_AMPORTFOLIO_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(AM_AMPORTFOLIO_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPORTFOLIO_EXT.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPORTFOLIO_EXT.MD_PF_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPORTFOLIO_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPORTFOLIO_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSETTAG" datatype="VARCHAR" size="40" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPORTFOLIO_EXT.ASSETTAG"/>
</DIAttributes>
</DIElement>
<DIElement name="AVGPRICECUR" datatype="VARCHAR" size="5" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPORTFOLIO_EXT.AVGPRICECUR"/>
</DIAttributes>
</DIElement>
<DIElement name="CODE" datatype="VARCHAR" size="64" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPORTFOLIO_EXT.CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="LASTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPORTFOLIO_EXT.LASTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LCOSTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPORTFOLIO_EXT.LCOSTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LLOCAID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPORTFOLIO_EXT.LLOCAID"/>
</DIAttributes>
</DIElement>
<DIElement name="LMODELID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPORTFOLIO_EXT.LMODELID"/>
</DIAttributes>
</DIElement>
<DIElement name="LORGID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPORTFOLIO_EXT.LORGID"/>
</DIAttributes>
</DIElement>
<DIElement name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPORTFOLIO_EXT.LPARENTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPORTFOLIO_EXT.LSUPERVID"/>
</DIAttributes>
</DIElement>
<DIElement name="MAVGPRICE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPORTFOLIO_EXT.MAVGPRICE"/>
</DIAttributes>
</DIElement>
<DIElement name="LPORTFOLIOITEMID" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPORTFOLIO_EXT.LPORTFOLIOITEMID"/>
</DIAttributes>
</DIElement>
<DIElement name="CMDBID" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPORTFOLIO_EXT.CMDBID"/>
</DIAttributes>
</DIElement>
<DIElement name="SEASSIGNMENT" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPORTFOLIO_EXT.SEASSIGNMENT"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPORTFOLIO_EXT.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPORTFOLIO_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMPORTFOLIO_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPORTFOLIO_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMPORTFOLIO_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPORTFOLIO_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMPORTFOLIO_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPORTFOLIO_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMPORTFOLIO_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPORTFOLIO_EXT.ASSETTAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMPORTFOLIO_EXT" column="ASSETTAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPORTFOLIO_EXT.AVGPRICECUR" >
<COLUMN_REFERENCE  qualifier1="AM_AMPORTFOLIO_EXT" column="AVGPRICECUR" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPORTFOLIO_EXT.CODE" >
<COLUMN_REFERENCE  qualifier1="AM_AMPORTFOLIO_EXT" column="CODE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPORTFOLIO_EXT.LASTID" >
<COLUMN_REFERENCE  qualifier1="AM_AMPORTFOLIO_EXT" column="LASTID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPORTFOLIO_EXT.LCOSTID" >
<COLUMN_REFERENCE  qualifier1="AM_AMPORTFOLIO_EXT" column="LCOSTID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPORTFOLIO_EXT.LLOCAID" >
<COLUMN_REFERENCE  qualifier1="AM_AMPORTFOLIO_EXT" column="LLOCAID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPORTFOLIO_EXT.LMODELID" >
<COLUMN_REFERENCE  qualifier1="AM_AMPORTFOLIO_EXT" column="LMODELID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPORTFOLIO_EXT.LORGID" >
<COLUMN_REFERENCE  qualifier1="AM_AMPORTFOLIO_EXT" column="LORGID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPORTFOLIO_EXT.LPARENTID" >
<COLUMN_REFERENCE  qualifier1="AM_AMPORTFOLIO_EXT" column="LPARENTID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPORTFOLIO_EXT.LSUPERVID" >
<COLUMN_REFERENCE  qualifier1="AM_AMPORTFOLIO_EXT" column="LSUPERVID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPORTFOLIO_EXT.MAVGPRICE" >
<COLUMN_REFERENCE  qualifier1="AM_AMPORTFOLIO_EXT" column="MAVGPRICE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPORTFOLIO_EXT.LPORTFOLIOITEMID" >
<COLUMN_REFERENCE  qualifier1="AM_AMPORTFOLIO_EXT" column="LPORTFOLIOITEMID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPORTFOLIO_EXT.CMDBID" >
<COLUMN_REFERENCE  qualifier1="AM_AMPORTFOLIO_EXT" column="CMDBID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPORTFOLIO_EXT.SEASSIGNMENT" >
<COLUMN_REFERENCE  qualifier1="AM_AMPORTFOLIO_EXT" column="SEASSIGNMENT" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPORTFOLIO_EXT.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="AM_AMPORTFOLIO_EXT" column="SRC_LASTMODDATE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="AM_AMPORTFOLIO_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(AM_AMPORTFOLIO_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="AM_AMPORTFOLIO_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMPORTFOLIO_EXT" >
<DIOutputView name="AM_AMPORTFOLIO_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMPORTFOLIO_TSNP" >
<DIInputView name="CASE_LOAD_FIRST_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
              <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
                <auto_correct_using_merge>Yes</auto_correct_using_merge>
                <bulk_ldr_all_rows/>
                <bulk_ldr_max_errors/>
                <bulk_ldr_rows_per_commit/>
                <enable_partitioning>no</enable_partitioning>
                <ignore_column_case>yes</ignore_column_case>
                <ignore_columns_null>No</ignore_columns_null>
                <ignore_columns_value/>
                <loader_auto_correct>no</loader_auto_correct>
                <loader_bulk_load>0</loader_bulk_load>
                <loader_compare_column>compare_by_name</loader_compare_column>
                <loader_delete_map/>
                <loader_drop_and_create_table>no</loader_drop_and_create_table>
                <loader_insert_map/>
                <loader_load_choice>append</loader_load_choice>
                <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
                <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_AM_AMPORTFOLIO_TSNP.txt</loader_overflow_file>
                <loader_post_load1/>
                <loader_pre_load1/>
                <loader_quote_names>0</loader_quote_names>
                <loader_transactional>no</loader_transactional>
                <loader_transactional_order>0</loader_transactional_order>
                <loader_update_key_columns>no</loader_update_key_columns>
                <loader_update_map/>
                <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
                <loader_xact_size>1000</loader_xact_size>
                <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
                <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
                <overflow_file_format>Write data</overflow_file_format>
                <overriding_substitution_parameter_for_tablename/>
                <use_overflow_file>no</use_overflow_file>
                <use_unicode_varchar>no</use_unicode_varchar>
                <sql_text/>
              </LDRConfiguration>
            </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>


<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CASE_LOAD_FIRST_RUN" value="$P_LATEST_WF_STATUS IS NULL and ($G_DEBUG_MODE &lt;&gt;1 or $G_DEBUG_MODE IS NULL) and ($G_TRACE_MODE &lt;&gt;1 or $G_TRACE_MODE IS NULL)"/>
<DIAttribute name="CASE_LOAD_RE_RUN" value="DEFAULT"/>
<DIAttribute name="ui_acta_from_schema_0" value="Merge"/>
<DIAttribute name="ui_display_name" value="CASE_LOAD"/>
</DIUIOptions>
<DIInputView name="Merge" />
<DISchema name="CASE_LOAD" >
</DISchema>
<DICase>
<DISwitch label="FIRST_RUN" outputView="CASE_LOAD_FIRST_RUN" isDefault="false">
<DIExpression isString="true" expr="((($P_LATEST_WF_STATUS IS  NULL ) AND&#xA;   (  (($G_DEBUG_MODE != 1) OR&#xA;   ($G_DEBUG_MODE IS  NULL ))  )) AND&#xA;   (  (($G_TRACE_MODE != 1) OR&#xA;   ($G_TRACE_MODE IS  NULL ))  ))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$P_LATEST_WF_STATUS" />
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="RE_RUN" outputView="CASE_LOAD_RE_RUN" isDefault="true">
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMPORTFOLIO_TSNP" >
<DIInputView name="CASE_LOAD_RE_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
              <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
                <auto_correct_using_merge>Yes</auto_correct_using_merge>
                <bulk_ldr_all_rows/>
                <bulk_ldr_max_errors/>
                <bulk_ldr_rows_per_commit/>
                <enable_partitioning>no</enable_partitioning>
                <ignore_column_case>yes</ignore_column_case>
                <ignore_columns_null>no</ignore_columns_null>
                <ignore_columns_value/>
                <loader_auto_correct>yes</loader_auto_correct>
                <loader_bulk_load>0</loader_bulk_load>
                <loader_compare_column>compare_by_name</loader_compare_column>
                <loader_delete_map/>
                <loader_drop_and_create_table>no</loader_drop_and_create_table>
                <loader_insert_map/>
                <loader_load_choice>append</loader_load_choice>
                <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
                <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_AM_AMPORTFOLIO_TSNP.txt</loader_overflow_file>
                <loader_post_load1/>
                <loader_pre_load1/>
                <loader_quote_names>0</loader_quote_names>
                <loader_transactional>no</loader_transactional>
                <loader_transactional_order>0</loader_transactional_order>
                <loader_update_key_columns>no</loader_update_key_columns>
                <loader_update_map/>
                <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
                <loader_xact_size>1000</loader_xact_size>
                <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
                <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
                <overflow_file_format>Write data</overflow_file_format>
                <overriding_substitution_parameter_for_tablename/>
                <use_overflow_file>no</use_overflow_file>
                <use_unicode_varchar>no</use_unicode_varchar>
                <sql_text/>
              </LDRConfiguration>
            </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="AM_AMBUDGLINE_TSNP_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow is used to process extracts into the transactional snapshot tables."/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="This workflow is used to process extracts into the transactional snapshot tables."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="AM_AMBUDGLINE_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow. The script will also be used to populate the local workflow variables."/>
<DIAttribute name="ui_display_name" value="AM_AMBUDGLINE_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK START OF WORKFLOW&#xD;&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="AM_AMBUDGLINE_TSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script that calls the custom function that closes the metadata records that are part of tracking the workflow process.&#xA;&#xA;"/>
<DIAttribute name="ui_display_name" value="AM_AMBUDGLINE_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block contains the script object that calls a custom fail workflow function used to write the metadata for failed jobs."/>
<DIAttribute name="ui_display_name" value="AM_AMBUDGLINE_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that is used to write the metadata for failed workflows."/>
<DIAttribute name="ui_display_name" value="AM_AMBUDGLINE_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK FAIL OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="AM_AMBUDGLINE_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This dataflow sources records from the EXT to TSNP tables. New records in the EXT tables are added to the TSNP table, Update records in EXT are updated in TSNP, and delete records are deleted from the TSNP table."/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="This workflow is used to process extracts into the transactional snapshot tables."/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Map records as insert"/>
<DIAttribute name="ui_display_name" value="MO_INSERT"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_INSERT" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Map records as delete"/>
<DIAttribute name="ui_display_name" value="MO_DELETE"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_DELETE" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This query filters out only the records marked as delete from the EXT table and sets the BATCH and PROCESS_ID fields"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="BUDGETCUR" datatype="VARCHAR" size="5" >
<DIAttributes>
<DIAttribute name="Description" value="Allowance (currency)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.BUDGETCUR"/>
</DIAttributes>
</DIElement>
<DIElement name="DNFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Discretionay Flag Business Key"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DNFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DSTART" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DSTART"/>
</DIAttributes>
</DIElement>
<DIElement name="LBUDGETCATID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Budget category"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LBUDGETCATID"/>
</DIAttributes>
</DIElement>
<DIElement name="LBUDGETID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Budget"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LBUDGETID"/>
</DIAttributes>
</DIElement>
<DIElement name="LPROJID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Project"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LPROJID"/>
</DIAttributes>
</DIElement>
<DIElement name="MBUDGET" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Allowance"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MBUDGET"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="128" >
<DIAttributes>
<DIAttribute name="Content_Type" value="NAME"/>
<DIAttribute name="Description" value="Name of the budget line"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="OCFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Opex / Capex Flag Business Key"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.OCFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last mod time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value="Business Key"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.BUDGETCUR" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="BUDGETCUR" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DNFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DNFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DSTART" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DSTART" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LBUDGETCATID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LBUDGETCATID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LBUDGETID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LBUDGETID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LPROJID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LPROJID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MBUDGET" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MBUDGET" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.OCFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="OCFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_QUALIFIER" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Merge new, update, and delete records"/>
<DIAttribute name="ui_display_name" value="MRG_NEW_UPD_DEL"/>
</DIUIOptions>
<DIInputView name="MO_DELETE"  />
<DIInputView name="MO_INSERT"  />
<DIInputView name="MO_UPDATE"  />
<DISchema name="MRG_NEW_UPD_DEL" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This query filters out only the records marked as new from the EXT table and sets the BATCH and PROCESS_ID fields"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="BUDGETCUR" datatype="VARCHAR" size="5" >
<DIAttributes>
<DIAttribute name="Description" value="Allowance (currency)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.BUDGETCUR"/>
</DIAttributes>
</DIElement>
<DIElement name="DNFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Discretionay Flag Business Key"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DNFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DSTART" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DSTART"/>
</DIAttributes>
</DIElement>
<DIElement name="LBUDGETCATID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Budget category"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LBUDGETCATID"/>
</DIAttributes>
</DIElement>
<DIElement name="LBUDGETID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Budget"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LBUDGETID"/>
</DIAttributes>
</DIElement>
<DIElement name="LPROJID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Project"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LPROJID"/>
</DIAttributes>
</DIElement>
<DIElement name="MBUDGET" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Allowance"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MBUDGET"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="128" >
<DIAttributes>
<DIAttribute name="Content_Type" value="NAME"/>
<DIAttribute name="Description" value="Name of the budget line"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="OCFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Opex / Capex Flag Business Key"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.OCFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last mod time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value="Business Key"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.BUDGETCUR" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="BUDGETCUR" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DNFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DNFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DSTART" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DSTART" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LBUDGETCATID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LBUDGETCATID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LBUDGETID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LBUDGETID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LPROJID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LPROJID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MBUDGET" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MBUDGET" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.OCFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="OCFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_QUALIFIER" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This query filters out only the records marked as an update from the EXT table and sets the BATCH and PROCESS_ID fields"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="BUDGETCUR" datatype="VARCHAR" size="5" >
<DIAttributes>
<DIAttribute name="Description" value="Allowance (currency)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.BUDGETCUR"/>
</DIAttributes>
</DIElement>
<DIElement name="DNFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Discretionay Flag Business Key"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DNFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DSTART" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DSTART"/>
</DIAttributes>
</DIElement>
<DIElement name="LBUDGETCATID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Budget category"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LBUDGETCATID"/>
</DIAttributes>
</DIElement>
<DIElement name="LBUDGETID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Budget"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LBUDGETID"/>
</DIAttributes>
</DIElement>
<DIElement name="LPROJID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Project"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LPROJID"/>
</DIAttributes>
</DIElement>
<DIElement name="MBUDGET" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Allowance"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MBUDGET"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="128" >
<DIAttributes>
<DIAttribute name="Content_Type" value="NAME"/>
<DIAttribute name="Description" value="Name of the budget line"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="OCFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Opex / Capex Flag Business Key"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.OCFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last mod time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value="Business Key"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.BUDGETCUR" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="BUDGETCUR" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DNFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DNFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DSTART" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DSTART" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LBUDGETCATID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LBUDGETCATID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LBUDGETID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LBUDGETID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LPROJID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LPROJID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MBUDGET" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MBUDGET" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.OCFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="OCFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_QUALIFIER" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Map records as update"/>
<DIAttribute name="ui_display_name" value="MO_UPDATE"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_UPDATE" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Query only those records marked as a pre-fill or changed record"/>
<DIAttribute name="ui_acta_from_schema_0" value="AM_AMBUDGLINE_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(AM_AMBUDGLINE_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="BUDGETCUR" datatype="VARCHAR" size="5" >
<DIAttributes>
<DIAttribute name="Description" value="Allowance (currency)"/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGLINE_EXT.BUDGETCUR"/>
</DIAttributes>
</DIElement>
<DIElement name="DNFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Discretionay Flag Business Key"/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGLINE_EXT.DNFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DSTART" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGLINE_EXT.DSTART"/>
</DIAttributes>
</DIElement>
<DIElement name="LBUDGETCATID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Budget category"/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGLINE_EXT.LBUDGETCATID"/>
</DIAttributes>
</DIElement>
<DIElement name="LBUDGETID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Budget"/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGLINE_EXT.LBUDGETID"/>
</DIAttributes>
</DIElement>
<DIElement name="LPROJID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Project"/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGLINE_EXT.LPROJID"/>
</DIAttributes>
</DIElement>
<DIElement name="MBUDGET" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Allowance"/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGLINE_EXT.MBUDGET"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="128" >
<DIAttributes>
<DIAttribute name="Content_Type" value="NAME"/>
<DIAttribute name="Description" value="Name of the budget line"/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGLINE_EXT.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="OCFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Opex / Capex Flag Business Key"/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGLINE_EXT.OCFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last mod time"/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGLINE_EXT.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGLINE_EXT.MD_BATCH_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value="Business Key"/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGLINE_EXT.MD_BUSINESS_KEY&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGLINE_EXT.MD_FLAG&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGLINE_EXT.MD_PF_FLAG&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGLINE_EXT.MD_PROCESS_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGLINE_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGLINE_EXT.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="AM_AMBUDGLINE_EXT.BUDGETCUR" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGLINE_EXT" column="BUDGETCUR" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGLINE_EXT.DNFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGLINE_EXT" column="DNFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGLINE_EXT.DSTART" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGLINE_EXT" column="DSTART" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGLINE_EXT.LBUDGETCATID" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGLINE_EXT" column="LBUDGETCATID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGLINE_EXT.LBUDGETID" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGLINE_EXT" column="LBUDGETID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGLINE_EXT.LPROJID" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGLINE_EXT" column="LPROJID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGLINE_EXT.MBUDGET" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGLINE_EXT" column="MBUDGET" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGLINE_EXT.NAME" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGLINE_EXT" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGLINE_EXT.OCFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGLINE_EXT" column="OCFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGLINE_EXT.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGLINE_EXT" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGLINE_EXT.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGLINE_EXT" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGLINE_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGLINE_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGLINE_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGLINE_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGLINE_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGLINE_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGLINE_EXT.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGLINE_EXT" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGLINE_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGLINE_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGLINE_EXT.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGLINE_EXT" column="MD_QUALIFIER" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="AM_AMBUDGLINE_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(AM_AMBUDGLINE_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGLINE_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMBUDGLINE_EXT" >
<DIOutputView name="AM_AMBUDGLINE_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMBUDGLINE_TSNP" >
<DIInputView name="MRG_NEW_UPD_DEL"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>yes</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>0</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="AM_AMCONTRACT_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version 0.14.0-SNAPSHOT)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Sat, 14 Mar 2009 09:06:24"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xA;AM_AMCONTRACT_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="AM_AMCONTRACT_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="AM_AMCONTRACT_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="AM_AMCONTRACT_TSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="AM_AMCONTRACT_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="AM_AMCONTRACT_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="AM_AMCONTRACT_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="AM_AMCONTRACT_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version 0.14.0-SNAPSHOT)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Sat, 14 Mar 2009 09:06:24"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Contract type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CONTRACT_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Contract name"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CONTRACT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Contract name alternate"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CONTRACT_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Category"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.COSTCATEGORY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.COSTCENTER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date contract no longer in effect"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_END_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date contract no longer in effect"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_END_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date contract takes effect"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date contract takes effect"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_ASSIGNABLE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Assignable flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.FLAG_ASSIGNABLE"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_PURCHASE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Purchase flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.FLAG_PURCHASE"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_RENEWAL" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Renewal flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.FLAG_RENEWAL"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_RETURN" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Return flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.FLAG_RETURN"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_UPGRADE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Upgrade flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.FLAG_UPGRADE"/>
</DIAttributes>
</DIElement>
<DIElement name="LICENSE_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="License contract type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LICENSE_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the manager (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MANAGER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Link to parent contract"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PARENT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PAYMENT_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Nature of payments"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PAYMENT_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIODICITY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Frequency of payments"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PERIODICITY"/>
</DIAttributes>
</DIElement>
<DIElement name="PURCHASE_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Purchase option type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PURCHASE_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="RENEWAL_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Renewal option type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.RENEWAL_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="RETURN_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Return option type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.RETURN_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last source modification date (cdc)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Status"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="SUPPLIER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the supplier (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SUPPLIER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="UPGRADE_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Upgrade option type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.UPGRADE_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CONTRACT_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CONTRACT_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CONTRACT_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CONTRACT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CONTRACT_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CONTRACT_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.COSTCATEGORY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="COSTCATEGORY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.COSTCENTER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="COSTCENTER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_END_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_END_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_END_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_END_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_START_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_START_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.FLAG_ASSIGNABLE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="FLAG_ASSIGNABLE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.FLAG_PURCHASE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="FLAG_PURCHASE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.FLAG_RENEWAL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="FLAG_RENEWAL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.FLAG_RETURN" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="FLAG_RETURN" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.FLAG_UPGRADE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="FLAG_UPGRADE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LICENSE_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LICENSE_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MANAGER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MANAGER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PARENT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PARENT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PAYMENT_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PAYMENT_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PERIODICITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PERIODICITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PURCHASE_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PURCHASE_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.RENEWAL_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="RENEWAL_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.RETURN_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="RETURN_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SUPPLIER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SUPPLIER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.UPGRADE_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="UPGRADE_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Contract type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CONTRACT_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Contract name"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CONTRACT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Contract name alternate"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CONTRACT_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Category"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.COSTCATEGORY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.COSTCENTER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date contract no longer in effect"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_END_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date contract no longer in effect"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_END_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date contract takes effect"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date contract takes effect"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_ASSIGNABLE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Assignable flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.FLAG_ASSIGNABLE"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_PURCHASE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Purchase flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.FLAG_PURCHASE"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_RENEWAL" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Renewal flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.FLAG_RENEWAL"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_RETURN" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Return flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.FLAG_RETURN"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_UPGRADE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Upgrade flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.FLAG_UPGRADE"/>
</DIAttributes>
</DIElement>
<DIElement name="LICENSE_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="License contract type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LICENSE_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the manager (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MANAGER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Link to parent contract"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PARENT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PAYMENT_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Nature of payments"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PAYMENT_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIODICITY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Frequency of payments"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PERIODICITY"/>
</DIAttributes>
</DIElement>
<DIElement name="PURCHASE_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Purchase option type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PURCHASE_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="RENEWAL_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Renewal option type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.RENEWAL_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="RETURN_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Return option type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.RETURN_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last source modification date (cdc)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Status"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="SUPPLIER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the supplier (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SUPPLIER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="UPGRADE_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Upgrade option type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.UPGRADE_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CONTRACT_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CONTRACT_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CONTRACT_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CONTRACT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CONTRACT_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CONTRACT_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.COSTCATEGORY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="COSTCATEGORY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.COSTCENTER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="COSTCENTER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_END_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_END_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_END_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_END_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_START_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_START_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.FLAG_ASSIGNABLE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="FLAG_ASSIGNABLE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.FLAG_PURCHASE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="FLAG_PURCHASE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.FLAG_RENEWAL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="FLAG_RENEWAL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.FLAG_RETURN" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="FLAG_RETURN" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.FLAG_UPGRADE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="FLAG_UPGRADE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LICENSE_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LICENSE_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MANAGER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MANAGER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PARENT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PARENT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PAYMENT_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PAYMENT_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PERIODICITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PERIODICITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PURCHASE_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PURCHASE_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.RENEWAL_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="RENEWAL_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.RETURN_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="RETURN_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SUPPLIER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SUPPLIER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.UPGRADE_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="UPGRADE_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Contract type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CONTRACT_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Contract name"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CONTRACT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Contract name alternate"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CONTRACT_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Category"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.COSTCATEGORY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.COSTCENTER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date contract no longer in effect"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_END_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date contract no longer in effect"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_END_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date contract takes effect"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date contract takes effect"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_ASSIGNABLE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Assignable flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.FLAG_ASSIGNABLE"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_PURCHASE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Purchase flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.FLAG_PURCHASE"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_RENEWAL" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Renewal flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.FLAG_RENEWAL"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_RETURN" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Return flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.FLAG_RETURN"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_UPGRADE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Upgrade flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.FLAG_UPGRADE"/>
</DIAttributes>
</DIElement>
<DIElement name="LICENSE_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="License contract type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LICENSE_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the manager (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MANAGER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Link to parent contract"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PARENT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PAYMENT_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Nature of payments"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PAYMENT_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIODICITY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Frequency of payments"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PERIODICITY"/>
</DIAttributes>
</DIElement>
<DIElement name="PURCHASE_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Purchase option type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PURCHASE_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="RENEWAL_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Renewal option type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.RENEWAL_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="RETURN_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Return option type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.RETURN_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last source modification date (cdc)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Status"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="SUPPLIER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the supplier (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SUPPLIER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="UPGRADE_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Upgrade option type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.UPGRADE_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CONTRACT_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CONTRACT_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CONTRACT_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CONTRACT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CONTRACT_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CONTRACT_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.COSTCATEGORY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="COSTCATEGORY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.COSTCENTER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="COSTCENTER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_END_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_END_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_END_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_END_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_START_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_START_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.FLAG_ASSIGNABLE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="FLAG_ASSIGNABLE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.FLAG_PURCHASE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="FLAG_PURCHASE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.FLAG_RENEWAL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="FLAG_RENEWAL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.FLAG_RETURN" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="FLAG_RETURN" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.FLAG_UPGRADE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="FLAG_UPGRADE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LICENSE_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LICENSE_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MANAGER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MANAGER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PARENT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PARENT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PAYMENT_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PAYMENT_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PERIODICITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PERIODICITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PURCHASE_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PURCHASE_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.RENEWAL_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="RENEWAL_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.RETURN_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="RETURN_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SUPPLIER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SUPPLIER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.UPGRADE_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="UPGRADE_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="AM_AMCONTRACT_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(AM_AMCONTRACT_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Contract type"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.CONTRACT_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Contract name"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.CONTRACT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Contract name alternate"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.CONTRACT_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Category"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.COSTCATEGORY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Center"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.COSTCENTER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date contract no longer in effect"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.DATE_END_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date contract no longer in effect"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.DATE_END_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date contract takes effect"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.DATE_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date contract takes effect"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.DATE_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_ASSIGNABLE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Assignable flag"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.FLAG_ASSIGNABLE"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_PURCHASE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Purchase flag"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.FLAG_PURCHASE"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_RENEWAL" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Renewal flag"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.FLAG_RENEWAL"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_RETURN" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Return flag"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.FLAG_RETURN"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_UPGRADE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Upgrade flag"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.FLAG_UPGRADE"/>
</DIAttributes>
</DIElement>
<DIElement name="LICENSE_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="License contract type"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.LICENSE_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the manager (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.MANAGER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.MD_PF_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Link to parent contract"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.PARENT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PAYMENT_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Nature of payments"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.PAYMENT_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIODICITY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Frequency of payments"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.PERIODICITY"/>
</DIAttributes>
</DIElement>
<DIElement name="PURCHASE_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Purchase option type"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.PURCHASE_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="RENEWAL_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Renewal option type"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.RENEWAL_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="RETURN_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Return option type"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.RETURN_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last source modification date (cdc)"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Status"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="SUPPLIER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the supplier (ORG)"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.SUPPLIER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="UPGRADE_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Upgrade option type"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.UPGRADE_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTRACT_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.CONTRACT_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="CONTRACT_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.CONTRACT_NAME" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="CONTRACT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.CONTRACT_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="CONTRACT_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.COSTCATEGORY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="COSTCATEGORY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.COSTCENTER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="COSTCENTER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.DATE_END_LOC" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="DATE_END_LOC" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.DATE_END_UTC" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="DATE_END_UTC" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.DATE_START_LOC" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="DATE_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.DATE_START_UTC" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="DATE_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.FLAG_ASSIGNABLE" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="FLAG_ASSIGNABLE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.FLAG_PURCHASE" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="FLAG_PURCHASE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.FLAG_RENEWAL" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="FLAG_RENEWAL" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.FLAG_RETURN" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="FLAG_RETURN" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.FLAG_UPGRADE" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="FLAG_UPGRADE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.LICENSE_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="LICENSE_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.MANAGER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="MANAGER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.PARENT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="PARENT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.PAYMENT_TYPE" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="PAYMENT_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.PERIODICITY" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="PERIODICITY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.PURCHASE_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="PURCHASE_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.RENEWAL_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="RENEWAL_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.RETURN_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="RETURN_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.STATUS" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="STATUS" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.SUPPLIER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="SUPPLIER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.UPGRADE_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="UPGRADE_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTRACT_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="AM_AMCONTRACT_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(AM_AMCONTRACT_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="AM_AMCONTRACT_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMCONTRACT_TSNP" >
<DIInputView name="Merge"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMCONTRACT_EXT" >
<DIOutputView name="AM_AMCONTRACT_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="AM_AMCOSTCENTER_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version 0.13.2)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Fri, 6 Mar 2009 12:48:59"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xA;AM_AMCOSTCENTER_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="AM_AMCOSTCENTER_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="AM_AMCOSTCENTER_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="AM_AMCOSTCENTER_TSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="AM_AMCOSTCENTER_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="AM_AMCOSTCENTER_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="AM_AMCOSTCENTER_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="AM_AMCOSTCENTER_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version 0.13.2)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Fri, 6 Mar 2009 12:48:59"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ACCTNO" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value="Associated accounting code"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ACCTNO"/>
</DIAttributes>
</DIElement>
<DIElement name="CODE" datatype="VARCHAR" size="20" >
<DIAttributes>
<DIAttribute name="Description" value="Code"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="DEND_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Cost center end date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DEND_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DEND_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Cost center end date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DEND_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DSTART_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date of creation of cost center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DSTART_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DSTART_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date of creation of cost center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DSTART_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Sub-cost-center of"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LPARENTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Person responsible for cost center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LSUPERVID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last mod time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="TITLE" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value="Title of cost center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.TITLE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ACCTNO" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ACCTNO" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DEND_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DEND_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DEND_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DEND_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DSTART_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DSTART_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DSTART_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DSTART_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LPARENTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LPARENTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LSUPERVID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LSUPERVID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.TITLE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="TITLE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ACCTNO" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value="Associated accounting code"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ACCTNO"/>
</DIAttributes>
</DIElement>
<DIElement name="CODE" datatype="VARCHAR" size="20" >
<DIAttributes>
<DIAttribute name="Description" value="Code"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="DEND_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Cost center end date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DEND_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DEND_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Cost center end date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DEND_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DSTART_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date of creation of cost center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DSTART_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DSTART_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date of creation of cost center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DSTART_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Sub-cost-center of"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LPARENTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Person responsible for cost center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LSUPERVID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last mod time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="TITLE" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value="Title of cost center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.TITLE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ACCTNO" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ACCTNO" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DEND_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DEND_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DEND_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DEND_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DSTART_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DSTART_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DSTART_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DSTART_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LPARENTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LPARENTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LSUPERVID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LSUPERVID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.TITLE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="TITLE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ACCTNO" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value="Associated accounting code"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ACCTNO"/>
</DIAttributes>
</DIElement>
<DIElement name="CODE" datatype="VARCHAR" size="20" >
<DIAttributes>
<DIAttribute name="Description" value="Code"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="DEND_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Cost center end date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DEND_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DEND_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Cost center end date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DEND_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DSTART_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date of creation of cost center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DSTART_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DSTART_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date of creation of cost center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DSTART_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Sub-cost-center of"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LPARENTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Person responsible for cost center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LSUPERVID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last mod time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="TITLE" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value="Title of cost center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.TITLE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ACCTNO" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ACCTNO" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DEND_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DEND_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DEND_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DEND_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DSTART_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DSTART_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DSTART_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DSTART_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LPARENTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LPARENTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LSUPERVID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LSUPERVID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.TITLE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="TITLE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="AM_AMCOSTCENTER_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(AM_AMCOSTCENTER_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ACCTNO" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value="Associated accounting code"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOSTCENTER_EXT.ACCTNO"/>
</DIAttributes>
</DIElement>
<DIElement name="CODE" datatype="VARCHAR" size="20" >
<DIAttributes>
<DIAttribute name="Description" value="Code"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOSTCENTER_EXT.CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="DEND_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Cost center end date"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOSTCENTER_EXT.DEND_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DEND_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Cost center end date"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOSTCENTER_EXT.DEND_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DSTART_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date of creation of cost center"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOSTCENTER_EXT.DSTART_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DSTART_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date of creation of cost center"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOSTCENTER_EXT.DSTART_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Sub-cost-center of"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOSTCENTER_EXT.LPARENTID"/>
</DIAttributes>
</DIElement>
<DIElement name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Person responsible for cost center"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOSTCENTER_EXT.LSUPERVID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOSTCENTER_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOSTCENTER_EXT.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOSTCENTER_EXT.MD_PF_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last mod time"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOSTCENTER_EXT.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="TITLE" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value="Title of cost center"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOSTCENTER_EXT.TITLE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOSTCENTER_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOSTCENTER_EXT.ACCTNO" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOSTCENTER_EXT" column="ACCTNO" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOSTCENTER_EXT.CODE" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOSTCENTER_EXT" column="CODE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOSTCENTER_EXT.DEND_LOC" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOSTCENTER_EXT" column="DEND_LOC" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOSTCENTER_EXT.DEND_UTC" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOSTCENTER_EXT" column="DEND_UTC" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOSTCENTER_EXT.DSTART_LOC" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOSTCENTER_EXT" column="DSTART_LOC" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOSTCENTER_EXT.DSTART_UTC" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOSTCENTER_EXT" column="DSTART_UTC" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOSTCENTER_EXT.LPARENTID" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOSTCENTER_EXT" column="LPARENTID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOSTCENTER_EXT.LSUPERVID" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOSTCENTER_EXT" column="LSUPERVID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOSTCENTER_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOSTCENTER_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOSTCENTER_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOSTCENTER_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOSTCENTER_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOSTCENTER_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOSTCENTER_EXT.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOSTCENTER_EXT" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOSTCENTER_EXT.TITLE" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOSTCENTER_EXT" column="TITLE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOSTCENTER_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOSTCENTER_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="AM_AMCOSTCENTER_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(AM_AMCOSTCENTER_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="AM_AMCOSTCENTER_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMCOSTCENTER_TSNP" >
<DIInputView name="Merge"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMCOSTCENTER_EXT" >
<DIOutputView name="AM_AMCOSTCENTER_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="AM_AMCURRATE_TSNP_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow is used to process extracts into the transactional snapshot tables."/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="This workflow is used to process extracts into the transactional snapshot tables."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="AM_AMCURRATE_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow. The script will also be used to populate the local workflow variables."/>
<DIAttribute name="ui_display_name" value="AM_AMCURRATE_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK START OF WORKFLOW&#xD;&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="AM_AMCURRATE_TSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script that calls the custom function that closes the metadata records that are part of tracking the workflow process.&#xA;&#xA;"/>
<DIAttribute name="ui_display_name" value="AM_AMCURRATE_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block contains the script object that calls a custom fail workflow function used to write the metadata for failed jobs."/>
<DIAttribute name="ui_display_name" value="AM_AMCURRATE_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that is used to write the metadata for failed workflows."/>
<DIAttribute name="ui_display_name" value="AM_AMMODEL_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK FAIL OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="AM_AMCURRATE_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This dataflow sources records from the EXT to TSNP tables. New records in the EXT tables are added to the TSNP table, Update records in EXT are updated in TSNP, and delete records are deleted from the TSNP table."/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="This dataflow is used to process extracts into the transactional snapshot tables."/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Map records as insert"/>
<DIAttribute name="ui_display_name" value="MO_INSERT"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_INSERT" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Map records as delete"/>
<DIAttribute name="ui_display_name" value="MO_DELETE"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_DELETE" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This query filters out only the records marked as delete from the EXT table and sets the BATCH and PROCESS_ID fields"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last modified date/time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value="Business Key"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="DTEND" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DTEND"/>
</DIAttributes>
</DIElement>
<DIElement name="DTSTART" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DTSTART"/>
</DIAttributes>
</DIElement>
<DIElement name="FRATE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.FRATE"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_NAME" datatype="VARCHAR" size="4" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SOURCE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="TARGET_NAME" datatype="VARCHAR" size="4" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.TARGET_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DTEND" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DTEND" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DTSTART" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DTSTART" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.FRATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="FRATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SOURCE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.TARGET_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="TARGET_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Merge new, update, and delete records"/>
<DIAttribute name="ui_display_name" value="MRG_NEW_UPD_DEL"/>
</DIUIOptions>
<DIInputView name="MO_DELETE"  />
<DIInputView name="MO_INSERT"  />
<DIInputView name="MO_UPDATE"  />
<DISchema name="MRG_NEW_UPD_DEL" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This query filters out only the records marked as new from the EXT table and sets the BATCH and PROCESS_ID fields"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last modified date/time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value="Business Key"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="DTEND" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DTEND"/>
</DIAttributes>
</DIElement>
<DIElement name="DTSTART" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DTSTART"/>
</DIAttributes>
</DIElement>
<DIElement name="FRATE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.FRATE"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_NAME" datatype="VARCHAR" size="4" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SOURCE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="TARGET_NAME" datatype="VARCHAR" size="4" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.TARGET_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DTEND" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DTEND" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DTSTART" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DTSTART" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.FRATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="FRATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SOURCE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.TARGET_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="TARGET_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This query filters out only the records marked as an update from the EXT table and sets the BATCH and PROCESS_ID fields"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last modified date/time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value="Business Key"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="DTEND" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DTEND"/>
</DIAttributes>
</DIElement>
<DIElement name="DTSTART" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DTSTART"/>
</DIAttributes>
</DIElement>
<DIElement name="FRATE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.FRATE"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_NAME" datatype="VARCHAR" size="4" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SOURCE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="TARGET_NAME" datatype="VARCHAR" size="4" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.TARGET_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DTEND" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DTEND" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DTSTART" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DTSTART" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.FRATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="FRATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SOURCE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.TARGET_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="TARGET_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Map records as update"/>
<DIAttribute name="ui_display_name" value="MO_UPDATE"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_UPDATE" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Query only those records marked as a pre-fill or changed record"/>
<DIAttribute name="ui_acta_from_schema_0" value="AM_AMCURRATE_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(AM_AMCURRATE_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last modified date/time"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCURRATE_EXT.SRC_LASTMODDATE&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCURRATE_EXT.MD_BATCH_ID&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value="Business Key"/>
<DIAttribute name="ui_mapping_text" value="AM_AMCURRATE_EXT.MD_BUSINESS_KEY&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCURRATE_EXT.MD_FLAG&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCURRATE_EXT.MD_PF_FLAG&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCURRATE_EXT.MD_PROCESS_ID&#xA; &#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DTEND" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCURRATE_EXT.DTEND"/>
</DIAttributes>
</DIElement>
<DIElement name="DTSTART" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCURRATE_EXT.DTSTART"/>
</DIAttributes>
</DIElement>
<DIElement name="FRATE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCURRATE_EXT.FRATE"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_NAME" datatype="VARCHAR" size="4" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCURRATE_EXT.SOURCE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="TARGET_NAME" datatype="VARCHAR" size="4" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCURRATE_EXT.TARGET_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCURRATE_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="AM_AMCURRATE_EXT.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="AM_AMCURRATE_EXT" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCURRATE_EXT.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMCURRATE_EXT" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCURRATE_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMCURRATE_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCURRATE_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMCURRATE_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCURRATE_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMCURRATE_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCURRATE_EXT.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMCURRATE_EXT" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCURRATE_EXT.DTEND" >
<COLUMN_REFERENCE  qualifier1="AM_AMCURRATE_EXT" column="DTEND" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCURRATE_EXT.DTSTART" >
<COLUMN_REFERENCE  qualifier1="AM_AMCURRATE_EXT" column="DTSTART" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCURRATE_EXT.FRATE" >
<COLUMN_REFERENCE  qualifier1="AM_AMCURRATE_EXT" column="FRATE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCURRATE_EXT.SOURCE_NAME" >
<COLUMN_REFERENCE  qualifier1="AM_AMCURRATE_EXT" column="SOURCE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCURRATE_EXT.TARGET_NAME" >
<COLUMN_REFERENCE  qualifier1="AM_AMCURRATE_EXT" column="TARGET_NAME" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCURRATE_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMCURRATE_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="AM_AMCURRATE_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(AM_AMCURRATE_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="AM_AMCURRATE_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMCURRATE_EXT" >
<DIOutputView name="AM_AMCURRATE_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMCURRATE_TSNP" >
<DIInputView name="MRG_NEW_UPD_DEL"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_AM_AMCURRATE_TSNP.txt</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="AM_AMCOUNTRY_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;AM_AMCOUNTRY_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_WF_NAME" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_MAX_WF_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="AM_AMCOUNTRY_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="AM_AMCOUNTRY_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="&#xD;&#xA;#WORKFLOW NAME&#xD;&#xA;$L_WF_NAME = workflow_name();&#xD;&#xA;&#xD;&#xA;# GET MAX PROCESS_ID OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID&#xD;&#xA;$L_MAX_WF_PROCESS_ID=M_ICPS_GET_MAX_WF_PROCESS_ID($G_BATCH_ID,$L_WF_NAME,job_name( ));&#xD;&#xA;&#xD;&#xA;# GET LAST EXECUTION STATUS OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID, ACCORDING TO MAX PROCESS_ID&#xD;&#xA;$L_LATEST_WF_STATUS =M_ICPS_GET_WF_STATUS($L_MAX_WF_PROCESS_ID,$L_WF_NAME );&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_WF_NAME" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_MAX_WF_PROCESS_ID" >
<DIExpression isString="true" expr="m_icps_get_max_wf_process_id($G_BATCH_ID, $L_WF_NAME, job_name())" >
<FUNCTION_CALL name="m_icps_get_max_wf_process_id"  type="DI" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
<FUNCTION_CALL name="job_name"  type="DI" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_LATEST_WF_STATUS" >
<DIExpression isString="true" expr="m_icps_get_wf_status($L_MAX_WF_PROCESS_ID, $L_WF_NAME)" >
<FUNCTION_CALL name="m_icps_get_wf_status"  type="DI" >
<VARIABLE_REFERENCE name="$L_MAX_WF_PROCESS_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DIIfStep typeId="2" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="If_condition" value=" $L_LATEST_WF_STATUS&lt;&gt;'SUCCESS'  or $L_LATEST_WF_STATUS is null"/>
<DIAttribute name="ui_display_name" value="AM_AMCOUNTRY_TSNP_CONDITION"/>
</DIUIOptions>
<DIExpression isString="true" expr="(($L_LATEST_WF_STATUS != 'SUCCESS') OR&#xA;   ($L_LATEST_WF_STATUS IS  NULL ))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
<CONSTANT value="SUCCESS" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="AM_AMCOUNTRY_TSNP_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_LATEST_WF_STATUS" >
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</DIExpression>
</DIParameterValues>
</DICallStep>
</DIIf>
<DIElse>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="Print"/>
<DIAttribute name="ui_script_text" value="ETL_PRINT('PREVIOS RUN OF WORKFLOW &gt;&gt; '||$L_WF_NAME||' FOR BATCH ID &gt;&gt; '||$G_BATCH_ID||' HAS FINISHED SUCCESSFULLY!');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((('PREVIOS RUN OF WORKFLOW &gt;&gt; ' || $L_WF_NAME) || ' FOR BATCH ID &gt;&gt; ') || $G_BATCH_ID) || ' HAS FINISHED SUCCESSFULLY!'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="PREVIOS RUN OF WORKFLOW &gt;&gt; " datatype="VARCHAR" size="27" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</CONCAT>
<CONSTANT value=" FOR BATCH ID &gt;&gt; " datatype="VARCHAR" size="17" />
</CONCAT>
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</CONCAT>
<CONSTANT value=" HAS FINISHED SUCCESSFULLY!" datatype="VARCHAR" size="27" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DIElse>
</DIIfStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="AM_AMCOUNTRY_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="AM_AMCOUNTRY_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="AM_AMCOUNTRY_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="AM_AMCOUNTRY_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DIParameters>
<DIElement paramType="IN" name="$P_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIParameters>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="64" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SRC_LASTMODDATE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="64" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SRC_LASTMODDATE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="64" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SRC_LASTMODDATE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="AM_AMCOUNTRY_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(AM_AMCOUNTRY_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOUNTRY_EXT.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOUNTRY_EXT.MD_PF_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOUNTRY_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOUNTRY_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="64" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOUNTRY_EXT.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOUNTRY_EXT.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOUNTRY_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOUNTRY_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOUNTRY_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOUNTRY_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOUNTRY_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOUNTRY_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOUNTRY_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOUNTRY_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOUNTRY_EXT.NAME" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOUNTRY_EXT" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOUNTRY_EXT.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOUNTRY_EXT" column="SRC_LASTMODDATE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="AM_AMCOUNTRY_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(AM_AMCOUNTRY_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="AM_AMCOUNTRY_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMCOUNTRY_EXT" >
<DIOutputView name="AM_AMCOUNTRY_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMCOUNTRY_TSNP" >
<DIInputView name="CASE_LOAD_FIRST_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
                <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
                  <auto_correct_using_merge>Yes</auto_correct_using_merge>
                  <bulk_ldr_all_rows/>
                  <bulk_ldr_max_errors/>
                  <bulk_ldr_rows_per_commit/>
                  <enable_partitioning>no</enable_partitioning>
                  <ignore_column_case>yes</ignore_column_case>
                  <ignore_columns_null>No</ignore_columns_null>
                  <ignore_columns_value/>
                  <loader_auto_correct>no</loader_auto_correct>
                  <loader_bulk_load>0</loader_bulk_load>
                  <loader_compare_column>compare_by_name</loader_compare_column>
                  <loader_delete_map/>
                  <loader_drop_and_create_table>no</loader_drop_and_create_table>
                  <loader_insert_map/>
                  <loader_load_choice>append</loader_load_choice>
                  <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
                  <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_AM_AMCOUNTRY_TSNP.txt</loader_overflow_file>
                  <loader_post_load1/>
                  <loader_pre_load1/>
                  <loader_quote_names>0</loader_quote_names>
                  <loader_transactional>no</loader_transactional>
                  <loader_transactional_order>0</loader_transactional_order>
                  <loader_update_key_columns>no</loader_update_key_columns>
                  <loader_update_map/>
                  <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
                  <loader_xact_size>1000</loader_xact_size>
                  <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
                  <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
                  <overflow_file_format>Write data</overflow_file_format>
                  <overriding_substitution_parameter_for_tablename/>
                  <use_overflow_file>no</use_overflow_file>
                  <use_unicode_varchar>no</use_unicode_varchar>
                  <sql_text/>
                </LDRConfiguration>
              </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>


<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CASE_LOAD_FIRST_RUN" value="$P_LATEST_WF_STATUS IS NULL and ($G_DEBUG_MODE &lt;&gt;1 or $G_DEBUG_MODE IS NULL) and ($G_TRACE_MODE &lt;&gt;1 or $G_TRACE_MODE IS NULL)"/>
<DIAttribute name="CASE_LOAD_RE_RUN" value="DEFAULT"/>
<DIAttribute name="ui_acta_from_schema_0" value="Merge"/>
<DIAttribute name="ui_display_name" value="CASE_LOAD"/>
</DIUIOptions>
<DIInputView name="Merge" />
<DISchema name="CASE_LOAD" >
</DISchema>
<DICase>
<DISwitch label="FIRST_RUN" outputView="CASE_LOAD_FIRST_RUN" isDefault="false">
<DIExpression isString="true" expr="((($P_LATEST_WF_STATUS IS  NULL ) AND&#xA;   (  (($G_DEBUG_MODE != 1) OR&#xA;   ($G_DEBUG_MODE IS  NULL ))  )) AND&#xA;   (  (($G_TRACE_MODE != 1) OR&#xA;   ($G_TRACE_MODE IS  NULL ))  ))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$P_LATEST_WF_STATUS" />
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="RE_RUN" outputView="CASE_LOAD_RE_RUN" isDefault="true">
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMCOUNTRY_TSNP" >
<DIInputView name="CASE_LOAD_RE_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
                <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
                  <auto_correct_using_merge>Yes</auto_correct_using_merge>
                  <bulk_ldr_all_rows/>
                  <bulk_ldr_max_errors/>
                  <bulk_ldr_rows_per_commit/>
                  <enable_partitioning>no</enable_partitioning>
                  <ignore_column_case>yes</ignore_column_case>
                  <ignore_columns_null>no</ignore_columns_null>
                  <ignore_columns_value/>
                  <loader_auto_correct>yes</loader_auto_correct>
                  <loader_bulk_load>0</loader_bulk_load>
                  <loader_compare_column>compare_by_name</loader_compare_column>
                  <loader_delete_map/>
                  <loader_drop_and_create_table>no</loader_drop_and_create_table>
                  <loader_insert_map/>
                  <loader_load_choice>append</loader_load_choice>
                  <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
                  <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_AM_AMCOUNTRY_TSNP.txt</loader_overflow_file>
                  <loader_post_load1/>
                  <loader_pre_load1/>
                  <loader_quote_names>0</loader_quote_names>
                  <loader_transactional>no</loader_transactional>
                  <loader_transactional_order>0</loader_transactional_order>
                  <loader_update_key_columns>no</loader_update_key_columns>
                  <loader_update_map/>
                  <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
                  <loader_xact_size>1000</loader_xact_size>
                  <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
                  <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
                  <overflow_file_format>Write data</overflow_file_format>
                  <overriding_substitution_parameter_for_tablename/>
                  <use_overflow_file>no</use_overflow_file>
                  <use_unicode_varchar>no</use_unicode_varchar>
                  <sql_text/>
                </LDRConfiguration>
              </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="AM_AMLOCATION_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;AM_AMLOCATION_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_WF_NAME" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_MAX_WF_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="AM_AMLOCATION_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="AM_AMLOCATION_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="&#xD;&#xA;#WORKFLOW NAME&#xD;&#xA;$L_WF_NAME = workflow_name();&#xD;&#xA;&#xD;&#xA;# GET MAX PROCESS_ID OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID&#xD;&#xA;$L_MAX_WF_PROCESS_ID=M_ICPS_GET_MAX_WF_PROCESS_ID($G_BATCH_ID,$L_WF_NAME,job_name( ));&#xD;&#xA;&#xD;&#xA;# GET LAST EXECUTION STATUS OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID, ACCORDING TO MAX PROCESS_ID&#xD;&#xA;$L_LATEST_WF_STATUS =M_ICPS_GET_WF_STATUS($L_MAX_WF_PROCESS_ID,$L_WF_NAME );&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_WF_NAME" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_MAX_WF_PROCESS_ID" >
<DIExpression isString="true" expr="m_icps_get_max_wf_process_id($G_BATCH_ID, $L_WF_NAME, job_name())" >
<FUNCTION_CALL name="m_icps_get_max_wf_process_id"  type="DI" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
<FUNCTION_CALL name="job_name"  type="DI" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_LATEST_WF_STATUS" >
<DIExpression isString="true" expr="m_icps_get_wf_status($L_MAX_WF_PROCESS_ID, $L_WF_NAME)" >
<FUNCTION_CALL name="m_icps_get_wf_status"  type="DI" >
<VARIABLE_REFERENCE name="$L_MAX_WF_PROCESS_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DIIfStep typeId="2" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="If_condition" value=" $L_LATEST_WF_STATUS&lt;&gt;'SUCCESS'  or $L_LATEST_WF_STATUS is null"/>
<DIAttribute name="ui_display_name" value="AM_AMLOCATION_TSNP_CONDITION"/>
</DIUIOptions>
<DIExpression isString="true" expr="(($L_LATEST_WF_STATUS != 'SUCCESS') OR&#xA;   ($L_LATEST_WF_STATUS IS  NULL ))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
<CONSTANT value="SUCCESS" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="AM_AMLOCATION_TSNP_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_LATEST_WF_STATUS" >
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</DIExpression>
</DIParameterValues>
</DICallStep>
</DIIf>
<DIElse>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="Print"/>
<DIAttribute name="ui_script_text" value="ETL_PRINT('PREVIOS RUN OF WORKFLOW &gt;&gt; '||$L_WF_NAME||' FOR BATCH ID &gt;&gt; '||$G_BATCH_ID||' HAS FINISHED SUCCESSFULLY!');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((('PREVIOS RUN OF WORKFLOW &gt;&gt; ' || $L_WF_NAME) || ' FOR BATCH ID &gt;&gt; ') || $G_BATCH_ID) || ' HAS FINISHED SUCCESSFULLY!'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="PREVIOS RUN OF WORKFLOW &gt;&gt; " datatype="VARCHAR" size="27" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</CONCAT>
<CONSTANT value=" FOR BATCH ID &gt;&gt; " datatype="VARCHAR" size="17" />
</CONCAT>
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</CONCAT>
<CONSTANT value=" HAS FINISHED SUCCESSFULLY!" datatype="VARCHAR" size="27" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DIElse>
</DIIfStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="AM_AMLOCATION_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="AM_AMLOCATION_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="AM_AMLOCATION_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="AM_AMLOCATION_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DIParameters>
<DIElement paramType="IN" name="$P_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIParameters>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LPARENTID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
<DIElement name="ZIP" datatype="VARCHAR" size="20" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ZIP"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATIONTYPE" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LOCATIONTYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="LCOUNTRYID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LCOUNTRYID"/>
</DIAttributes>
</DIElement>
<DIElement name="STATEX" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.STATEX"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="CITY" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CITY"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LPARENTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LPARENTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_QUALIFIER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ZIP" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ZIP" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LOCATIONTYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LOCATIONTYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LCOUNTRYID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LCOUNTRYID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.STATEX" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="STATEX" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CITY" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LPARENTID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
<DIElement name="ZIP" datatype="VARCHAR" size="20" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ZIP"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATIONTYPE" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LOCATIONTYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="LCOUNTRYID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LCOUNTRYID"/>
</DIAttributes>
</DIElement>
<DIElement name="STATEX" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.STATEX"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="CITY" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CITY"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LPARENTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LPARENTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_QUALIFIER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ZIP" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ZIP" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LOCATIONTYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LOCATIONTYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LCOUNTRYID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LCOUNTRYID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.STATEX" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="STATEX" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CITY" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LPARENTID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
<DIElement name="ZIP" datatype="VARCHAR" size="20" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ZIP"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATIONTYPE" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LOCATIONTYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="LCOUNTRYID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LCOUNTRYID"/>
</DIAttributes>
</DIElement>
<DIElement name="STATEX" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.STATEX"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="CITY" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CITY"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LPARENTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LPARENTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_QUALIFIER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ZIP" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ZIP" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LOCATIONTYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LOCATIONTYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LCOUNTRYID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LCOUNTRYID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.STATEX" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="STATEX" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CITY" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="AM_AMLOCATION_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(AM_AMLOCATION_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMLOCATION_EXT.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMLOCATION_EXT.MD_PF_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMLOCATION_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMLOCATION_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMLOCATION_EXT.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMLOCATION_EXT.LPARENTID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMLOCATION_EXT.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
<DIElement name="ZIP" datatype="VARCHAR" size="20" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMLOCATION_EXT.ZIP"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATIONTYPE" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMLOCATION_EXT.LOCATIONTYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="LCOUNTRYID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMLOCATION_EXT.LCOUNTRYID"/>
</DIAttributes>
</DIElement>
<DIElement name="STATEX" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMLOCATION_EXT.STATEX"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMLOCATION_EXT.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="CITY" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMLOCATION_EXT.CITY"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMLOCATION_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMLOCATION_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMLOCATION_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMLOCATION_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMLOCATION_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMLOCATION_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMLOCATION_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMLOCATION_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMLOCATION_EXT.NAME" >
<COLUMN_REFERENCE  qualifier1="AM_AMLOCATION_EXT" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMLOCATION_EXT.LPARENTID" >
<COLUMN_REFERENCE  qualifier1="AM_AMLOCATION_EXT" column="LPARENTID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMLOCATION_EXT.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="AM_AMLOCATION_EXT" column="MD_QUALIFIER" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMLOCATION_EXT.ZIP" >
<COLUMN_REFERENCE  qualifier1="AM_AMLOCATION_EXT" column="ZIP" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMLOCATION_EXT.LOCATIONTYPE" >
<COLUMN_REFERENCE  qualifier1="AM_AMLOCATION_EXT" column="LOCATIONTYPE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMLOCATION_EXT.LCOUNTRYID" >
<COLUMN_REFERENCE  qualifier1="AM_AMLOCATION_EXT" column="LCOUNTRYID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMLOCATION_EXT.STATEX" >
<COLUMN_REFERENCE  qualifier1="AM_AMLOCATION_EXT" column="STATEX" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMLOCATION_EXT.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="AM_AMLOCATION_EXT" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMLOCATION_EXT.CITY" >
<COLUMN_REFERENCE  qualifier1="AM_AMLOCATION_EXT" column="CITY" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="AM_AMLOCATION_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(AM_AMLOCATION_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="AM_AMLOCATION_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMLOCATION_EXT" >
<DIOutputView name="AM_AMLOCATION_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMLOCATION_TSNP" >
<DIInputView name="CASE_LOAD_FIRST_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
        <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
          <auto_correct_using_merge>Yes</auto_correct_using_merge>
          <bulk_ldr_all_rows/>
          <bulk_ldr_max_errors/>
          <bulk_ldr_rows_per_commit/>
          <enable_partitioning>no</enable_partitioning>
          <ignore_column_case>yes</ignore_column_case>
          <ignore_columns_null>No</ignore_columns_null>
          <ignore_columns_value/>
          <loader_auto_correct>no</loader_auto_correct>
          <loader_bulk_load>0</loader_bulk_load>
          <loader_compare_column>compare_by_name</loader_compare_column>
          <loader_delete_map/>
          <loader_drop_and_create_table>no</loader_drop_and_create_table>
          <loader_insert_map/>
          <loader_load_choice>append</loader_load_choice>
          <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
          <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_AM_AMLOCATION_TSNP.txt</loader_overflow_file>
          <loader_post_load1/>
          <loader_pre_load1/>
          <loader_quote_names>0</loader_quote_names>
          <loader_transactional>no</loader_transactional>
          <loader_transactional_order>0</loader_transactional_order>
          <loader_update_key_columns>no</loader_update_key_columns>
          <loader_update_map/>
          <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
          <loader_xact_size>1000</loader_xact_size>
          <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
          <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
          <overflow_file_format>Write data</overflow_file_format>
          <overriding_substitution_parameter_for_tablename/>
          <use_overflow_file>no</use_overflow_file>
          <use_unicode_varchar>no</use_unicode_varchar>
          <sql_text/>
        </LDRConfiguration>
      </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>


<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CASE_LOAD_FIRST_RUN" value="$P_LATEST_WF_STATUS IS NULL and ($G_DEBUG_MODE &lt;&gt;1 or $G_DEBUG_MODE IS NULL) and ($G_TRACE_MODE &lt;&gt;1 or $G_TRACE_MODE IS NULL)"/>
<DIAttribute name="CASE_LOAD_RE_RUN" value="DEFAULT"/>
<DIAttribute name="ui_acta_from_schema_0" value="Merge"/>
<DIAttribute name="ui_display_name" value="CASE_LOAD"/>
</DIUIOptions>
<DIInputView name="Merge" />
<DISchema name="CASE_LOAD" >
</DISchema>
<DICase>
<DISwitch label="FIRST_RUN" outputView="CASE_LOAD_FIRST_RUN" isDefault="false">
<DIExpression isString="true" expr="((($P_LATEST_WF_STATUS IS  NULL ) AND&#xA;   (  (($G_DEBUG_MODE != 1) OR&#xA;   ($G_DEBUG_MODE IS  NULL ))  )) AND&#xA;   (  (($G_TRACE_MODE != 1) OR&#xA;   ($G_TRACE_MODE IS  NULL ))  ))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$P_LATEST_WF_STATUS" />
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="RE_RUN" outputView="CASE_LOAD_RE_RUN" isDefault="true">
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMLOCATION_TSNP" >
<DIInputView name="CASE_LOAD_RE_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
        <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
          <auto_correct_using_merge>Yes</auto_correct_using_merge>
          <bulk_ldr_all_rows/>
          <bulk_ldr_max_errors/>
          <bulk_ldr_rows_per_commit/>
          <enable_partitioning>no</enable_partitioning>
          <ignore_column_case>yes</ignore_column_case>
          <ignore_columns_null>no</ignore_columns_null>
          <ignore_columns_value/>
          <loader_auto_correct>yes</loader_auto_correct>
          <loader_bulk_load>0</loader_bulk_load>
          <loader_compare_column>compare_by_name</loader_compare_column>
          <loader_delete_map/>
          <loader_drop_and_create_table>no</loader_drop_and_create_table>
          <loader_insert_map/>
          <loader_load_choice>append</loader_load_choice>
          <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
          <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_AM_AMLOCATION_TSNP.txt</loader_overflow_file>
          <loader_post_load1/>
          <loader_pre_load1/>
          <loader_quote_names>0</loader_quote_names>
          <loader_transactional>no</loader_transactional>
          <loader_transactional_order>0</loader_transactional_order>
          <loader_update_key_columns>no</loader_update_key_columns>
          <loader_update_map/>
          <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
          <loader_xact_size>1000</loader_xact_size>
          <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
          <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
          <overflow_file_format>Write data</overflow_file_format>
          <overriding_substitution_parameter_for_tablename/>
          <use_overflow_file>no</use_overflow_file>
          <use_unicode_varchar>no</use_unicode_varchar>
          <sql_text/>
        </LDRConfiguration>
      </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="AM_AMEMPLDEPT_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;AM_AMEMPLDEPT_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_WF_NAME" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_MAX_WF_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="AM_AMEMPLDEPT_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="AM_AMEMPLDEPT_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="&#xD;&#xA;#WORKFLOW NAME&#xD;&#xA;$L_WF_NAME = workflow_name();&#xD;&#xA;&#xD;&#xA;# GET MAX PROCESS_ID OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID&#xD;&#xA;$L_MAX_WF_PROCESS_ID=M_ICPS_GET_MAX_WF_PROCESS_ID($G_BATCH_ID,$L_WF_NAME,job_name( ));&#xD;&#xA;&#xD;&#xA;# GET LAST EXECUTION STATUS OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID, ACCORDING TO MAX PROCESS_ID&#xD;&#xA;$L_LATEST_WF_STATUS =M_ICPS_GET_WF_STATUS($L_MAX_WF_PROCESS_ID,$L_WF_NAME );&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_WF_NAME" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_MAX_WF_PROCESS_ID" >
<DIExpression isString="true" expr="m_icps_get_max_wf_process_id($G_BATCH_ID, $L_WF_NAME, job_name())" >
<FUNCTION_CALL name="m_icps_get_max_wf_process_id"  type="DI" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
<FUNCTION_CALL name="job_name"  type="DI" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_LATEST_WF_STATUS" >
<DIExpression isString="true" expr="m_icps_get_wf_status($L_MAX_WF_PROCESS_ID, $L_WF_NAME)" >
<FUNCTION_CALL name="m_icps_get_wf_status"  type="DI" >
<VARIABLE_REFERENCE name="$L_MAX_WF_PROCESS_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DIIfStep typeId="2" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="If_condition" value=" $L_LATEST_WF_STATUS&lt;&gt;'SUCCESS'  or $L_LATEST_WF_STATUS is null"/>
<DIAttribute name="ui_display_name" value="AM_AMEMPLDEPT_TSNP_CONDITION"/>
</DIUIOptions>
<DIExpression isString="true" expr="(($L_LATEST_WF_STATUS != 'SUCCESS') OR&#xA;   ($L_LATEST_WF_STATUS IS  NULL ))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
<CONSTANT value="SUCCESS" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="AM_AMEMPLDEPT_TSNP_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_LATEST_WF_STATUS" >
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</DIExpression>
</DIParameterValues>
</DICallStep>
</DIIf>
<DIElse>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="Print"/>
<DIAttribute name="ui_script_text" value="ETL_PRINT('PREVIOS RUN OF WORKFLOW &gt;&gt; '||$L_WF_NAME||' FOR BATCH ID &gt;&gt; '||$G_BATCH_ID||' HAS FINISHED SUCCESSFULLY!');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((('PREVIOS RUN OF WORKFLOW &gt;&gt; ' || $L_WF_NAME) || ' FOR BATCH ID &gt;&gt; ') || $G_BATCH_ID) || ' HAS FINISHED SUCCESSFULLY!'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="PREVIOS RUN OF WORKFLOW &gt;&gt; " datatype="VARCHAR" size="27" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</CONCAT>
<CONSTANT value=" FOR BATCH ID &gt;&gt; " datatype="VARCHAR" size="17" />
</CONCAT>
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</CONCAT>
<CONSTANT value=" HAS FINISHED SUCCESSFULLY!" datatype="VARCHAR" size="27" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DIElse>
</DIIfStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="AM_AMEMPLDEPT_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="AM_AMEMPLDEPT_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="AM_AMEMPLDEPT_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="AM_AMEMPLDEPT_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DIParameters>
<DIElement paramType="IN" name="$P_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIParameters>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="EMAIL" datatype="VARCHAR" size="40" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.EMAIL"/>
</DIAttributes>
</DIElement>
<DIElement name="SLVL" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SLVL"/>
</DIAttributes>
</DIElement>
<DIElement name="BDEPARTMENT" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.BDEPARTMENT"/>
</DIAttributes>
</DIElement>
<DIElement name="LLOCAID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LLOCAID"/>
</DIAttributes>
</DIElement>
<DIElement name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LSUPERVID"/>
</DIAttributes>
</DIElement>
<DIElement name="FIRSTNAME" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.FIRSTNAME"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="50" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LPARENTID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
<DIElement name="DHIRE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DHIRE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DLEAVE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DLEAVE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DHIRE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DHIRE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DLEAVE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DLEAVE_UTC"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.EMAIL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="EMAIL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SLVL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SLVL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.BDEPARTMENT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="BDEPARTMENT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LLOCAID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LLOCAID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LSUPERVID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LSUPERVID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.FIRSTNAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="FIRSTNAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LPARENTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LPARENTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_QUALIFIER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DHIRE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DHIRE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DLEAVE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DLEAVE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DHIRE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DHIRE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DLEAVE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DLEAVE_UTC" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="EMAIL" datatype="VARCHAR" size="40" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.EMAIL"/>
</DIAttributes>
</DIElement>
<DIElement name="SLVL" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SLVL"/>
</DIAttributes>
</DIElement>
<DIElement name="BDEPARTMENT" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.BDEPARTMENT"/>
</DIAttributes>
</DIElement>
<DIElement name="LLOCAID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LLOCAID"/>
</DIAttributes>
</DIElement>
<DIElement name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LSUPERVID"/>
</DIAttributes>
</DIElement>
<DIElement name="FIRSTNAME" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.FIRSTNAME"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="50" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LPARENTID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
<DIElement name="DHIRE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DHIRE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DLEAVE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DLEAVE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DHIRE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DHIRE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DLEAVE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DLEAVE_UTC"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.EMAIL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="EMAIL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SLVL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SLVL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.BDEPARTMENT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="BDEPARTMENT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LLOCAID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LLOCAID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LSUPERVID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LSUPERVID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.FIRSTNAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="FIRSTNAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LPARENTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LPARENTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_QUALIFIER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DHIRE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DHIRE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DLEAVE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DLEAVE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DHIRE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DHIRE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DLEAVE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DLEAVE_UTC" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="EMAIL" datatype="VARCHAR" size="40" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.EMAIL"/>
</DIAttributes>
</DIElement>
<DIElement name="SLVL" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SLVL"/>
</DIAttributes>
</DIElement>
<DIElement name="BDEPARTMENT" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.BDEPARTMENT"/>
</DIAttributes>
</DIElement>
<DIElement name="LLOCAID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LLOCAID"/>
</DIAttributes>
</DIElement>
<DIElement name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LSUPERVID"/>
</DIAttributes>
</DIElement>
<DIElement name="FIRSTNAME" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.FIRSTNAME"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="50" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LPARENTID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
<DIElement name="DHIRE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DHIRE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DLEAVE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DLEAVE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DHIRE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DHIRE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DLEAVE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DLEAVE_UTC"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.EMAIL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="EMAIL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SLVL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SLVL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.BDEPARTMENT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="BDEPARTMENT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LLOCAID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LLOCAID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LSUPERVID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LSUPERVID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.FIRSTNAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="FIRSTNAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LPARENTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LPARENTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_QUALIFIER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DHIRE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DHIRE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DLEAVE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DLEAVE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DHIRE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DHIRE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DLEAVE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DLEAVE_UTC" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="AM_AMEMPLDEPT_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(AM_AMEMPLDEPT_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEMPLDEPT_EXT.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEMPLDEPT_EXT.MD_PF_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEMPLDEPT_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEMPLDEPT_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="EMAIL" datatype="VARCHAR" size="40" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEMPLDEPT_EXT.EMAIL"/>
</DIAttributes>
</DIElement>
<DIElement name="SLVL" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEMPLDEPT_EXT.SLVL"/>
</DIAttributes>
</DIElement>
<DIElement name="BDEPARTMENT" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEMPLDEPT_EXT.BDEPARTMENT"/>
</DIAttributes>
</DIElement>
<DIElement name="LLOCAID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEMPLDEPT_EXT.LLOCAID"/>
</DIAttributes>
</DIElement>
<DIElement name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEMPLDEPT_EXT.LSUPERVID"/>
</DIAttributes>
</DIElement>
<DIElement name="FIRSTNAME" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEMPLDEPT_EXT.FIRSTNAME"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="50" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEMPLDEPT_EXT.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEMPLDEPT_EXT.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEMPLDEPT_EXT.LPARENTID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEMPLDEPT_EXT.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
<DIElement name="DHIRE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEMPLDEPT_EXT.DHIRE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DLEAVE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEMPLDEPT_EXT.DLEAVE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DHIRE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEMPLDEPT_EXT.DHIRE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DLEAVE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMEMPLDEPT_EXT.DLEAVE_UTC"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEMPLDEPT_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMEMPLDEPT_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEMPLDEPT_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMEMPLDEPT_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEMPLDEPT_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMEMPLDEPT_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEMPLDEPT_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMEMPLDEPT_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEMPLDEPT_EXT.EMAIL" >
<COLUMN_REFERENCE  qualifier1="AM_AMEMPLDEPT_EXT" column="EMAIL" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEMPLDEPT_EXT.SLVL" >
<COLUMN_REFERENCE  qualifier1="AM_AMEMPLDEPT_EXT" column="SLVL" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEMPLDEPT_EXT.BDEPARTMENT" >
<COLUMN_REFERENCE  qualifier1="AM_AMEMPLDEPT_EXT" column="BDEPARTMENT" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEMPLDEPT_EXT.LLOCAID" >
<COLUMN_REFERENCE  qualifier1="AM_AMEMPLDEPT_EXT" column="LLOCAID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEMPLDEPT_EXT.LSUPERVID" >
<COLUMN_REFERENCE  qualifier1="AM_AMEMPLDEPT_EXT" column="LSUPERVID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEMPLDEPT_EXT.FIRSTNAME" >
<COLUMN_REFERENCE  qualifier1="AM_AMEMPLDEPT_EXT" column="FIRSTNAME" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEMPLDEPT_EXT.NAME" >
<COLUMN_REFERENCE  qualifier1="AM_AMEMPLDEPT_EXT" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEMPLDEPT_EXT.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="AM_AMEMPLDEPT_EXT" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEMPLDEPT_EXT.LPARENTID" >
<COLUMN_REFERENCE  qualifier1="AM_AMEMPLDEPT_EXT" column="LPARENTID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEMPLDEPT_EXT.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="AM_AMEMPLDEPT_EXT" column="MD_QUALIFIER" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEMPLDEPT_EXT.DHIRE_UTC" >
<COLUMN_REFERENCE  qualifier1="AM_AMEMPLDEPT_EXT" column="DHIRE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEMPLDEPT_EXT.DLEAVE_LOC" >
<COLUMN_REFERENCE  qualifier1="AM_AMEMPLDEPT_EXT" column="DLEAVE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEMPLDEPT_EXT.DHIRE_LOC" >
<COLUMN_REFERENCE  qualifier1="AM_AMEMPLDEPT_EXT" column="DHIRE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMEMPLDEPT_EXT.DLEAVE_UTC" >
<COLUMN_REFERENCE  qualifier1="AM_AMEMPLDEPT_EXT" column="DLEAVE_UTC" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="AM_AMEMPLDEPT_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(AM_AMEMPLDEPT_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="AM_AMEMPLDEPT_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMEMPLDEPT_EXT" >
<DIOutputView name="AM_AMEMPLDEPT_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMEMPLDEPT_TSNP" >
<DIInputView name="CASE_LOAD_FIRST_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>No</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_AM_AMEMPLDEPT_TSNP.txt</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>


<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CASE_LOAD_FIRST_RUN" value="$P_LATEST_WF_STATUS IS NULL and ($G_DEBUG_MODE &lt;&gt;1 or $G_DEBUG_MODE IS NULL) and ($G_TRACE_MODE &lt;&gt;1 or $G_TRACE_MODE IS NULL)"/>
<DIAttribute name="CASE_LOAD_RE_RUN" value="DEFAULT"/>
<DIAttribute name="ui_acta_from_schema_0" value="Merge"/>
<DIAttribute name="ui_display_name" value="CASE_LOAD"/>
</DIUIOptions>
<DIInputView name="Merge" />
<DISchema name="CASE_LOAD" >
</DISchema>
<DICase>
<DISwitch label="FIRST_RUN" outputView="CASE_LOAD_FIRST_RUN" isDefault="false">
<DIExpression isString="true" expr="((($P_LATEST_WF_STATUS IS  NULL ) AND&#xA;   (  (($G_DEBUG_MODE != 1) OR&#xA;   ($G_DEBUG_MODE IS  NULL ))  )) AND&#xA;   (  (($G_TRACE_MODE != 1) OR&#xA;   ($G_TRACE_MODE IS  NULL ))  ))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$P_LATEST_WF_STATUS" />
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="RE_RUN" outputView="CASE_LOAD_RE_RUN" isDefault="true">
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMEMPLDEPT_TSNP" >
<DIInputView name="CASE_LOAD_RE_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_AM_AMEMPLDEPT_TSNP.txt</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="AM_AMCOMPANY_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;AM_AMCOMPANY_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_WF_NAME" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_MAX_WF_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="AM_AMCOMPANY_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="AM_AMCOMPANY_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="&#xD;&#xA;#WORKFLOW NAME&#xD;&#xA;$L_WF_NAME = workflow_name();&#xD;&#xA;&#xD;&#xA;# GET MAX PROCESS_ID OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID&#xD;&#xA;$L_MAX_WF_PROCESS_ID=M_ICPS_GET_MAX_WF_PROCESS_ID($G_BATCH_ID,$L_WF_NAME,job_name( ));&#xD;&#xA;&#xD;&#xA;# GET LAST EXECUTION STATUS OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID, ACCORDING TO MAX PROCESS_ID&#xD;&#xA;$L_LATEST_WF_STATUS =M_ICPS_GET_WF_STATUS($L_MAX_WF_PROCESS_ID,$L_WF_NAME );&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_WF_NAME" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_MAX_WF_PROCESS_ID" >
<DIExpression isString="true" expr="m_icps_get_max_wf_process_id($G_BATCH_ID, $L_WF_NAME, job_name())" >
<FUNCTION_CALL name="m_icps_get_max_wf_process_id"  type="DI" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
<FUNCTION_CALL name="job_name"  type="DI" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_LATEST_WF_STATUS" >
<DIExpression isString="true" expr="m_icps_get_wf_status($L_MAX_WF_PROCESS_ID, $L_WF_NAME)" >
<FUNCTION_CALL name="m_icps_get_wf_status"  type="DI" >
<VARIABLE_REFERENCE name="$L_MAX_WF_PROCESS_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DIIfStep typeId="2" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="If_condition" value=" $L_LATEST_WF_STATUS&lt;&gt;'SUCCESS'  or $L_LATEST_WF_STATUS is null"/>
<DIAttribute name="ui_display_name" value="AM_AMCOMPANY_TSNP_CONDITION"/>
</DIUIOptions>
<DIExpression isString="true" expr="(($L_LATEST_WF_STATUS != 'SUCCESS') OR&#xA;   ($L_LATEST_WF_STATUS IS  NULL ))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
<CONSTANT value="SUCCESS" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="AM_AMCOMPANY_TSNP_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_LATEST_WF_STATUS" >
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</DIExpression>
</DIParameterValues>
</DICallStep>
</DIIf>
<DIElse>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="Print"/>
<DIAttribute name="ui_script_text" value="ETL_PRINT('PREVIOS RUN OF WORKFLOW &gt;&gt; '||$L_WF_NAME||' FOR BATCH ID &gt;&gt; '||$G_BATCH_ID||' HAS FINISHED SUCCESSFULLY!');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((('PREVIOS RUN OF WORKFLOW &gt;&gt; ' || $L_WF_NAME) || ' FOR BATCH ID &gt;&gt; ') || $G_BATCH_ID) || ' HAS FINISHED SUCCESSFULLY!'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="PREVIOS RUN OF WORKFLOW &gt;&gt; " datatype="VARCHAR" size="27" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</CONCAT>
<CONSTANT value=" FOR BATCH ID &gt;&gt; " datatype="VARCHAR" size="17" />
</CONCAT>
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</CONCAT>
<CONSTANT value=" HAS FINISHED SUCCESSFULLY!" datatype="VARCHAR" size="27" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DIElse>
</DIIfStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="AM_AMCOMPANY_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="AM_AMCOMPANY_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="AM_AMCOMPANY_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="AM_AMCOMPANY_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DIParameters>
<DIElement paramType="IN" name="$P_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIParameters>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="CODE" datatype="VARCHAR" size="20" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CODE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_QUALIFIER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CODE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="CODE" datatype="VARCHAR" size="20" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CODE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_QUALIFIER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CODE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="CODE" datatype="VARCHAR" size="20" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CODE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_QUALIFIER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CODE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="AM_AMCOMPANY_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(AM_AMCOMPANY_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOMPANY_EXT.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOMPANY_EXT.MD_PF_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOMPANY_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOMPANY_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOMPANY_EXT.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOMPANY_EXT.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOMPANY_EXT.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="CODE" datatype="VARCHAR" size="20" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCOMPANY_EXT.CODE"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOMPANY_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOMPANY_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOMPANY_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOMPANY_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOMPANY_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOMPANY_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOMPANY_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOMPANY_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOMPANY_EXT.NAME" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOMPANY_EXT" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOMPANY_EXT.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOMPANY_EXT" column="MD_QUALIFIER" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOMPANY_EXT.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOMPANY_EXT" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCOMPANY_EXT.CODE" >
<COLUMN_REFERENCE  qualifier1="AM_AMCOMPANY_EXT" column="CODE" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="AM_AMCOMPANY_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(AM_AMCOMPANY_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="AM_AMCOMPANY_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMCOMPANY_EXT" >
<DIOutputView name="AM_AMCOMPANY_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMCOMPANY_TSNP" >
<DIInputView name="CASE_LOAD_FIRST_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
            <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
              <auto_correct_using_merge>Yes</auto_correct_using_merge>
              <bulk_ldr_all_rows/>
              <bulk_ldr_max_errors/>
              <bulk_ldr_rows_per_commit/>
              <enable_partitioning>no</enable_partitioning>
              <ignore_column_case>yes</ignore_column_case>
              <ignore_columns_null>No</ignore_columns_null>
              <ignore_columns_value/>
              <loader_auto_correct>no</loader_auto_correct>
              <loader_bulk_load>0</loader_bulk_load>
              <loader_compare_column>compare_by_name</loader_compare_column>
              <loader_delete_map/>
              <loader_drop_and_create_table>no</loader_drop_and_create_table>
              <loader_insert_map/>
              <loader_load_choice>append</loader_load_choice>
              <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
              <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_AM_AMCOMPANY_TSNP.txt</loader_overflow_file>
              <loader_post_load1/>
              <loader_pre_load1/>
              <loader_quote_names>0</loader_quote_names>
              <loader_transactional>no</loader_transactional>
              <loader_transactional_order>0</loader_transactional_order>
              <loader_update_key_columns>no</loader_update_key_columns>
              <loader_update_map/>
              <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
              <loader_xact_size>1000</loader_xact_size>
              <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
              <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
              <overflow_file_format>Write data</overflow_file_format>
              <overriding_substitution_parameter_for_tablename/>
              <use_overflow_file>no</use_overflow_file>
              <use_unicode_varchar>no</use_unicode_varchar>
              <sql_text/>
            </LDRConfiguration>
          </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>


<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CASE_LOAD_FIRST_RUN" value="$P_LATEST_WF_STATUS IS NULL and ($G_DEBUG_MODE &lt;&gt;1 or $G_DEBUG_MODE IS NULL) and ($G_TRACE_MODE &lt;&gt;1 or $G_TRACE_MODE IS NULL)"/>
<DIAttribute name="CASE_LOAD_RE_RUN" value="DEFAULT"/>
<DIAttribute name="ui_acta_from_schema_0" value="Merge"/>
<DIAttribute name="ui_display_name" value="CASE_LOAD"/>
</DIUIOptions>
<DIInputView name="Merge" />
<DISchema name="CASE_LOAD" >
</DISchema>
<DICase>
<DISwitch label="FIRST_RUN" outputView="CASE_LOAD_FIRST_RUN" isDefault="false">
<DIExpression isString="true" expr="((($P_LATEST_WF_STATUS IS  NULL ) AND&#xA;   (  (($G_DEBUG_MODE != 1) OR&#xA;   ($G_DEBUG_MODE IS  NULL ))  )) AND&#xA;   (  (($G_TRACE_MODE != 1) OR&#xA;   ($G_TRACE_MODE IS  NULL ))  ))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$P_LATEST_WF_STATUS" />
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="RE_RUN" outputView="CASE_LOAD_RE_RUN" isDefault="true">
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMCOMPANY_TSNP" >
<DIInputView name="CASE_LOAD_RE_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
            <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
              <auto_correct_using_merge>Yes</auto_correct_using_merge>
              <bulk_ldr_all_rows/>
              <bulk_ldr_max_errors/>
              <bulk_ldr_rows_per_commit/>
              <enable_partitioning>no</enable_partitioning>
              <ignore_column_case>yes</ignore_column_case>
              <ignore_columns_null>no</ignore_columns_null>
              <ignore_columns_value/>
              <loader_auto_correct>yes</loader_auto_correct>
              <loader_bulk_load>0</loader_bulk_load>
              <loader_compare_column>compare_by_name</loader_compare_column>
              <loader_delete_map/>
              <loader_drop_and_create_table>no</loader_drop_and_create_table>
              <loader_insert_map/>
              <loader_load_choice>append</loader_load_choice>
              <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
              <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_AM_AMCOMPANY_TSNP.txt</loader_overflow_file>
              <loader_post_load1/>
              <loader_pre_load1/>
              <loader_quote_names>0</loader_quote_names>
              <loader_transactional>no</loader_transactional>
              <loader_transactional_order>0</loader_transactional_order>
              <loader_update_key_columns>no</loader_update_key_columns>
              <loader_update_map/>
              <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
              <loader_xact_size>1000</loader_xact_size>
              <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
              <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
              <overflow_file_format>Write data</overflow_file_format>
              <overriding_substitution_parameter_for_tablename/>
              <use_overflow_file>no</use_overflow_file>
              <use_unicode_varchar>no</use_unicode_varchar>
              <sql_text/>
            </LDRConfiguration>
          </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="AM_AMCONTACT_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;AM_AMCONTACT_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="AM_AMCONTACT_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="AM_AMCONTACT_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="AM_AMCONTACT_TSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="AM_AMCONTACT_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="AM_AMCONTACT_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="AM_AMCONTACT_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="AM_AMCONTACT_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="EMAIL" datatype="VARCHAR" size="40" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.EMAIL"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="LCPYID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LCPYID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
<DIElement name="FIRST_NAME" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.FIRST_NAME"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.EMAIL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="EMAIL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LCPYID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LCPYID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_QUALIFIER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.FIRST_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="FIRST_NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="EMAIL" datatype="VARCHAR" size="40" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.EMAIL"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="LCPYID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LCPYID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
<DIElement name="FIRST_NAME" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.FIRST_NAME"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.EMAIL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="EMAIL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LCPYID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LCPYID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_QUALIFIER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.FIRST_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="FIRST_NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="EMAIL" datatype="VARCHAR" size="40" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.EMAIL"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="LCPYID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LCPYID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
<DIElement name="FIRST_NAME" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.FIRST_NAME"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.EMAIL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="EMAIL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LCPYID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LCPYID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_QUALIFIER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.FIRST_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="FIRST_NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="AM_AMCONTACT_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(AM_AMCONTACT_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTACT_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTACT_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTACT_EXT.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTACT_EXT.MD_PF_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTACT_EXT.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="EMAIL" datatype="VARCHAR" size="40" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTACT_EXT.EMAIL"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTACT_EXT.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="LCPYID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTACT_EXT.LCPYID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTACT_EXT.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
<DIElement name="FIRST_NAME" datatype="VARCHAR" size="30" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMCONTACT_EXT.FIRST_NAME"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTACT_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTACT_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTACT_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTACT_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTACT_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTACT_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTACT_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTACT_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTACT_EXT.NAME" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTACT_EXT" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTACT_EXT.EMAIL" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTACT_EXT" column="EMAIL" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTACT_EXT.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTACT_EXT" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTACT_EXT.LCPYID" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTACT_EXT" column="LCPYID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTACT_EXT.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTACT_EXT" column="MD_QUALIFIER" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMCONTACT_EXT.FIRST_NAME" >
<COLUMN_REFERENCE  qualifier1="AM_AMCONTACT_EXT" column="FIRST_NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="AM_AMCONTACT_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(AM_AMCONTACT_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="AM_AMCONTACT_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMCONTACT_EXT" >
<DIOutputView name="AM_AMCONTACT_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMCONTACT_TSNP" >
<DIInputView name="Merge"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_AM_AMCONTACT_TSNP.txt</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="AM_AMBUDGCENTER_TSNP_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow is used to process extracts into the transactional snapshot tables."/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="This workflow is used to process extracts into the transactional snapshot tables."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="AM_AMBUDGCENTER_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow. The script will also be used to populate the local workflow variables."/>
<DIAttribute name="ui_display_name" value="AM_AMBUDGCENTER_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK START OF WORKFLOW&#xD;&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="AM_AMBUDGCENTER_TSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script that calls the custom function that closes the metadata records that are part of tracking the workflow process.&#xA;&#xA;"/>
<DIAttribute name="ui_display_name" value="AM_AMBUDGCENTER_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block contains the script object that calls a custom fail workflow function used to write the metadata for failed jobs."/>
<DIAttribute name="ui_display_name" value="AM_AMBUDGCENTER_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that is used to write the metadata for failed workflows."/>
<DIAttribute name="ui_display_name" value="AM_AMBUDGCENTER_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK FAIL OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="AM_AMBUDGCENTER_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This dataflow sources records from the EXT to TSNP tables. New records in the EXT tables are added to the TSNP table, Update records in EXT are updated in TSNP, and delete records are deleted from the TSNP table."/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="This workflow is used to process extracts into the transactional snapshot tables."/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Map records as insert"/>
<DIAttribute name="ui_display_name" value="MO_INSERT"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_INSERT" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Map records as delete"/>
<DIAttribute name="ui_display_name" value="MO_DELETE"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_DELETE" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This query filters out only the records marked as delete from the EXT table and sets the BATCH and PROCESS_ID fields"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Budget center supervisor"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LSUPERVID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="64" >
<DIAttributes>
<DIAttribute name="Content_Type" value="NAME"/>
<DIAttribute name="Description" value="Name"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last mod time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value="Business Key"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LSUPERVID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LSUPERVID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Merge new, update, and delete records"/>
<DIAttribute name="ui_display_name" value="MRG_NEW_UPD_DEL"/>
</DIUIOptions>
<DIInputView name="MO_DELETE"  />
<DIInputView name="MO_INSERT"  />
<DIInputView name="MO_UPDATE"  />
<DISchema name="MRG_NEW_UPD_DEL" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This query filters out only the records marked as new from the EXT table and sets the BATCH and PROCESS_ID fields"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Budget center supervisor"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LSUPERVID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="64" >
<DIAttributes>
<DIAttribute name="Content_Type" value="NAME"/>
<DIAttribute name="Description" value="Name"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last mod time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value="Business Key"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LSUPERVID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LSUPERVID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This query filters out only the records marked as an update from the EXT table and sets the BATCH and PROCESS_ID fields"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Budget center supervisor"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LSUPERVID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="64" >
<DIAttributes>
<DIAttribute name="Content_Type" value="NAME"/>
<DIAttribute name="Description" value="Name"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last mod time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value="Business Key"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LSUPERVID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LSUPERVID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Map records as update"/>
<DIAttribute name="ui_display_name" value="MO_UPDATE"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_UPDATE" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Query only those records marked as a pre-fill or changed record"/>
<DIAttribute name="ui_acta_from_schema_0" value="AM_AMBUDGCENTER_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(AM_AMBUDGCENTER_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Budget center supervisor"/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGCENTER_EXT.LSUPERVID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="64" >
<DIAttributes>
<DIAttribute name="Content_Type" value="NAME"/>
<DIAttribute name="Description" value="Name"/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGCENTER_EXT.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last mod time"/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGCENTER_EXT.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGCENTER_EXT.MD_BATCH_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value="Business Key"/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGCENTER_EXT.MD_BUSINESS_KEY&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGCENTER_EXT.MD_FLAG&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGCENTER_EXT.MD_PF_FLAG&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGCENTER_EXT.MD_PROCESS_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGCENTER_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="AM_AMBUDGCENTER_EXT.LSUPERVID" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGCENTER_EXT" column="LSUPERVID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGCENTER_EXT.NAME" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGCENTER_EXT" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGCENTER_EXT.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGCENTER_EXT" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGCENTER_EXT.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGCENTER_EXT" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGCENTER_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGCENTER_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGCENTER_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGCENTER_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGCENTER_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGCENTER_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGCENTER_EXT.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGCENTER_EXT" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGCENTER_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGCENTER_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="AM_AMBUDGCENTER_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(AM_AMBUDGCENTER_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGCENTER_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMBUDGCENTER_EXT" >
<DIOutputView name="AM_AMBUDGCENTER_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMBUDGCENTER_TSNP" >
<DIInputView name="MRG_NEW_UPD_DEL"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="AM_AMBUDGET_TSNP_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow is used to process extracts into the transactional snapshot tables."/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="This workflow is used to process extracts into the transactional snapshot tables."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_IDENTIFIER" datatype="VARCHAR" size="100" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="AM_AMBUDGET_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow. The script will also be used to populate the local workflow variables."/>
<DIAttribute name="ui_display_name" value="AM_AMBUDGET_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK START OF WORKFLOW&#xD;&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="AM_AMBUDGET_TSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script that calls the custom function that closes the metadata records that are part of tracking the workflow process.&#xA;&#xA;"/>
<DIAttribute name="ui_display_name" value="AM_AMBUDGET_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK END OF WORKFLOW&#xA;ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block contains the script object that calls a custom fail workflow function used to write the metadata for failed jobs."/>
<DIAttribute name="ui_display_name" value="AM_AMBUDGET_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that is used to write the metadata for failed workflows."/>
<DIAttribute name="ui_display_name" value="AM_AMBUDGET_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="# CALL FUNCTION TO TRACK FAIL OF WORKFLOW&#xA;ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="AM_AMBUDGET_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This dataflow sources records from the EXT to TSNP tables. New records in the EXT tables are added to the TSNP table, Update records in EXT are updated in TSNP, and delete records are deleted from the TSNP table."/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="This workflow is used to process extracts into the transactional snapshot tables."/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Map records as insert"/>
<DIAttribute name="ui_display_name" value="MO_INSERT"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_INSERT" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Map records as delete"/>
<DIAttribute name="ui_display_name" value="MO_DELETE"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_DELETE" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This query filters out only the records marked as delete from the EXT table and sets the BATCH and PROCESS_ID fields"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="CODE" datatype="VARCHAR" size="20" >
<DIAttributes>
<DIAttribute name="Description" value="Code"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="LBUDGCNTRID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Budget center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LBUDGCNTRID"/>
</DIAttributes>
</DIElement>
<DIElement name="LFYDIVISIONID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Time division"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LFYDIVISIONID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Content_Type" value="NAME"/>
<DIAttribute name="Description" value="Name"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last mod time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value="Business Key"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LBUDGCNTRID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LBUDGCNTRID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LFYDIVISIONID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LFYDIVISIONID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Merge new, update, and delete records"/>
<DIAttribute name="ui_display_name" value="MRG_NEW_UPD_DEL"/>
</DIUIOptions>
<DIInputView name="MO_DELETE"  />
<DIInputView name="MO_INSERT"  />
<DIInputView name="MO_UPDATE"  />
<DISchema name="MRG_NEW_UPD_DEL" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This query filters out only the records marked as new from the EXT table and sets the BATCH and PROCESS_ID fields"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="CODE" datatype="VARCHAR" size="20" >
<DIAttributes>
<DIAttribute name="Description" value="Code"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="LBUDGCNTRID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Budget center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LBUDGCNTRID"/>
</DIAttributes>
</DIElement>
<DIElement name="LFYDIVISIONID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Time division"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LFYDIVISIONID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Content_Type" value="NAME"/>
<DIAttribute name="Description" value="Name"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last mod time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value="Business Key"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LBUDGCNTRID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LBUDGCNTRID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LFYDIVISIONID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LFYDIVISIONID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This query filters out only the records marked as an update from the EXT table and sets the BATCH and PROCESS_ID fields"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="CODE" datatype="VARCHAR" size="20" >
<DIAttributes>
<DIAttribute name="Description" value="Code"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="LBUDGCNTRID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Budget center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LBUDGCNTRID"/>
</DIAttributes>
</DIElement>
<DIElement name="LFYDIVISIONID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Time division"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LFYDIVISIONID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Content_Type" value="NAME"/>
<DIAttribute name="Description" value="Name"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last mod time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value="Business Key"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LBUDGCNTRID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LBUDGCNTRID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LFYDIVISIONID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LFYDIVISIONID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Map records as update"/>
<DIAttribute name="ui_display_name" value="MO_UPDATE"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_UPDATE" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Query only those records marked as a pre-fill or changed record"/>
<DIAttribute name="ui_acta_from_schema_0" value="AM_AMBUDGET_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(AM_AMBUDGET_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="CODE" datatype="VARCHAR" size="20" >
<DIAttributes>
<DIAttribute name="Description" value="Code"/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGET_EXT.CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="LBUDGCNTRID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Budget center"/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGET_EXT.LBUDGCNTRID"/>
</DIAttributes>
</DIElement>
<DIElement name="LFYDIVISIONID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="ID of link Time division"/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGET_EXT.LFYDIVISIONID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Content_Type" value="NAME"/>
<DIAttribute name="Description" value="Name"/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGET_EXT.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Last mod time"/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGET_EXT.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGET_EXT.MD_BATCH_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value="Business Key"/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGET_EXT.MD_BUSINESS_KEY&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGET_EXT.MD_FLAG&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGET_EXT.MD_PF_FLAG&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGET_EXT.MD_PROCESS_ID&#xA; &#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMBUDGET_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="AM_AMBUDGET_EXT.CODE" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGET_EXT" column="CODE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGET_EXT.LBUDGCNTRID" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGET_EXT" column="LBUDGCNTRID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGET_EXT.LFYDIVISIONID" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGET_EXT" column="LFYDIVISIONID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGET_EXT.NAME" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGET_EXT" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGET_EXT.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGET_EXT" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGET_EXT.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGET_EXT" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGET_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGET_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGET_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGET_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGET_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGET_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGET_EXT.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGET_EXT" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMBUDGET_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGET_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="AM_AMBUDGET_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(AM_AMBUDGET_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="AM_AMBUDGET_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMBUDGET_EXT" >
<DIOutputView name="AM_AMBUDGET_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMBUDGET_TSNP" >
<DIInputView name="MRG_NEW_UPD_DEL"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>yes</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>0</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="AM_AMPROJECT_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;AM_AMPROJECT_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_WF_NAME" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_MAX_WF_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="AM_AMPROJECT_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="AM_AMPROJECT_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="&#xD;&#xA;#WORKFLOW NAME&#xD;&#xA;$L_WF_NAME = workflow_name();&#xD;&#xA;&#xD;&#xA;# GET MAX PROCESS_ID OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID&#xD;&#xA;$L_MAX_WF_PROCESS_ID=M_ICPS_GET_MAX_WF_PROCESS_ID($G_BATCH_ID,$L_WF_NAME,job_name( ));&#xD;&#xA;&#xD;&#xA;# GET LAST EXECUTION STATUS OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID, ACCORDING TO MAX PROCESS_ID&#xD;&#xA;$L_LATEST_WF_STATUS =M_ICPS_GET_WF_STATUS($L_MAX_WF_PROCESS_ID,$L_WF_NAME );&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_WF_NAME" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_MAX_WF_PROCESS_ID" >
<DIExpression isString="true" expr="m_icps_get_max_wf_process_id($G_BATCH_ID, $L_WF_NAME, job_name())" >
<FUNCTION_CALL name="m_icps_get_max_wf_process_id"  type="DI" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
<FUNCTION_CALL name="job_name"  type="DI" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_LATEST_WF_STATUS" >
<DIExpression isString="true" expr="m_icps_get_wf_status($L_MAX_WF_PROCESS_ID, $L_WF_NAME)" >
<FUNCTION_CALL name="m_icps_get_wf_status"  type="DI" >
<VARIABLE_REFERENCE name="$L_MAX_WF_PROCESS_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DIIfStep typeId="2" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="If_condition" value=" $L_LATEST_WF_STATUS&lt;&gt;'SUCCESS'  or $L_LATEST_WF_STATUS is null"/>
<DIAttribute name="ui_display_name" value="AM_AMPROJECT_TSNP_CONDITION"/>
</DIUIOptions>
<DIExpression isString="true" expr="(($L_LATEST_WF_STATUS != 'SUCCESS') OR&#xA;   ($L_LATEST_WF_STATUS IS  NULL ))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
<CONSTANT value="SUCCESS" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="AM_AMPROJECT_TSNP_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_LATEST_WF_STATUS" >
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</DIExpression>
</DIParameterValues>
</DICallStep>
</DIIf>
<DIElse>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="Print"/>
<DIAttribute name="ui_script_text" value="ETL_PRINT('PREVIOS RUN OF WORKFLOW &gt;&gt; '||$L_WF_NAME||' FOR BATCH ID &gt;&gt; '||$G_BATCH_ID||' HAS FINISHED SUCCESSFULLY!');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((('PREVIOS RUN OF WORKFLOW &gt;&gt; ' || $L_WF_NAME) || ' FOR BATCH ID &gt;&gt; ') || $G_BATCH_ID) || ' HAS FINISHED SUCCESSFULLY!'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="PREVIOS RUN OF WORKFLOW &gt;&gt; " datatype="VARCHAR" size="27" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</CONCAT>
<CONSTANT value=" FOR BATCH ID &gt;&gt; " datatype="VARCHAR" size="17" />
</CONCAT>
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</CONCAT>
<CONSTANT value=" HAS FINISHED SUCCESSFULLY!" datatype="VARCHAR" size="27" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DIElse>
</DIIfStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="AM_AMPROJECT_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="AM_AMPROJECT_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="AM_AMPROJECT_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="AM_AMPROJECT_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DIParameters>
<DIElement paramType="IN" name="$P_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIParameters>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="TITLE" datatype="VARCHAR" size="40" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.TITLE"/>
</DIAttributes>
</DIElement>
<DIElement name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LPARENTID"/>
</DIAttributes>
</DIElement>
<DIElement name="BIZVALDESC" datatype="VARCHAR" size="64" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.BIZVALDESC"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LSUPERVID"/>
</DIAttributes>
</DIElement>
<DIElement name="REFX" datatype="VARCHAR" size="16" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.REFX"/>
</DIAttributes>
</DIElement>
<DIElement name="DSTART_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DSTART_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DEND_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DEND_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DSTART_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DSTART_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DEND_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DEND_UTC"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.TITLE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="TITLE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LPARENTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LPARENTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.BIZVALDESC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="BIZVALDESC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_QUALIFIER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LSUPERVID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LSUPERVID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.REFX" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="REFX" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DSTART_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DSTART_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DEND_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DEND_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DSTART_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DSTART_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DEND_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DEND_UTC" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="TITLE" datatype="VARCHAR" size="40" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.TITLE"/>
</DIAttributes>
</DIElement>
<DIElement name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LPARENTID"/>
</DIAttributes>
</DIElement>
<DIElement name="BIZVALDESC" datatype="VARCHAR" size="64" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.BIZVALDESC"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LSUPERVID"/>
</DIAttributes>
</DIElement>
<DIElement name="REFX" datatype="VARCHAR" size="16" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.REFX"/>
</DIAttributes>
</DIElement>
<DIElement name="DSTART_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DSTART_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DEND_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DEND_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DSTART_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DSTART_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DEND_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DEND_UTC"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.TITLE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="TITLE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LPARENTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LPARENTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.BIZVALDESC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="BIZVALDESC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_QUALIFIER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LSUPERVID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LSUPERVID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.REFX" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="REFX" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DSTART_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DSTART_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DEND_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DEND_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DSTART_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DSTART_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DEND_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DEND_UTC" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="TITLE" datatype="VARCHAR" size="40" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.TITLE"/>
</DIAttributes>
</DIElement>
<DIElement name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LPARENTID"/>
</DIAttributes>
</DIElement>
<DIElement name="BIZVALDESC" datatype="VARCHAR" size="64" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.BIZVALDESC"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LSUPERVID"/>
</DIAttributes>
</DIElement>
<DIElement name="REFX" datatype="VARCHAR" size="16" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.REFX"/>
</DIAttributes>
</DIElement>
<DIElement name="DSTART_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DSTART_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DEND_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DEND_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DSTART_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DSTART_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DEND_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DEND_UTC"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.TITLE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="TITLE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LPARENTID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LPARENTID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.BIZVALDESC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="BIZVALDESC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_QUALIFIER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LSUPERVID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LSUPERVID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.REFX" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="REFX" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DSTART_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DSTART_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DEND_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DEND_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DSTART_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DSTART_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DEND_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DEND_UTC" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="AM_AMPROJECT_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(AM_AMPROJECT_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPROJECT_EXT.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPROJECT_EXT.MD_PF_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPROJECT_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPROJECT_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS" datatype="VARCHAR" size="80" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPROJECT_EXT.STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="TITLE" datatype="VARCHAR" size="40" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPROJECT_EXT.TITLE"/>
</DIAttributes>
</DIElement>
<DIElement name="LPARENTID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPROJECT_EXT.LPARENTID"/>
</DIAttributes>
</DIElement>
<DIElement name="BIZVALDESC" datatype="VARCHAR" size="64" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPROJECT_EXT.BIZVALDESC"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPROJECT_EXT.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
<DIElement name="SRC_LASTMODDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPROJECT_EXT.SRC_LASTMODDATE"/>
</DIAttributes>
</DIElement>
<DIElement name="LSUPERVID" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPROJECT_EXT.LSUPERVID"/>
</DIAttributes>
</DIElement>
<DIElement name="REFX" datatype="VARCHAR" size="16" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPROJECT_EXT.REFX"/>
</DIAttributes>
</DIElement>
<DIElement name="DSTART_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPROJECT_EXT.DSTART_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DEND_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPROJECT_EXT.DEND_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DSTART_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPROJECT_EXT.DSTART_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DEND_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="AM_AMPROJECT_EXT.DEND_UTC"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPROJECT_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMPROJECT_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPROJECT_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="AM_AMPROJECT_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPROJECT_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="AM_AMPROJECT_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPROJECT_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="AM_AMPROJECT_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPROJECT_EXT.STATUS" >
<COLUMN_REFERENCE  qualifier1="AM_AMPROJECT_EXT" column="STATUS" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPROJECT_EXT.TITLE" >
<COLUMN_REFERENCE  qualifier1="AM_AMPROJECT_EXT" column="TITLE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPROJECT_EXT.LPARENTID" >
<COLUMN_REFERENCE  qualifier1="AM_AMPROJECT_EXT" column="LPARENTID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPROJECT_EXT.BIZVALDESC" >
<COLUMN_REFERENCE  qualifier1="AM_AMPROJECT_EXT" column="BIZVALDESC" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPROJECT_EXT.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="AM_AMPROJECT_EXT" column="MD_QUALIFIER" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPROJECT_EXT.SRC_LASTMODDATE" >
<COLUMN_REFERENCE  qualifier1="AM_AMPROJECT_EXT" column="SRC_LASTMODDATE" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPROJECT_EXT.LSUPERVID" >
<COLUMN_REFERENCE  qualifier1="AM_AMPROJECT_EXT" column="LSUPERVID" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPROJECT_EXT.REFX" >
<COLUMN_REFERENCE  qualifier1="AM_AMPROJECT_EXT" column="REFX" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPROJECT_EXT.DSTART_LOC" >
<COLUMN_REFERENCE  qualifier1="AM_AMPROJECT_EXT" column="DSTART_LOC" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPROJECT_EXT.DEND_LOC" >
<COLUMN_REFERENCE  qualifier1="AM_AMPROJECT_EXT" column="DEND_LOC" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPROJECT_EXT.DSTART_UTC" >
<COLUMN_REFERENCE  qualifier1="AM_AMPROJECT_EXT" column="DSTART_UTC" />
</DIExpression>
<DIExpression isString="true" expr="AM_AMPROJECT_EXT.DEND_UTC" >
<COLUMN_REFERENCE  qualifier1="AM_AMPROJECT_EXT" column="DEND_UTC" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="AM_AMPROJECT_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(AM_AMPROJECT_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="AM_AMPROJECT_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMPROJECT_EXT" >
<DIOutputView name="AM_AMPROJECT_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMPROJECT_TSNP" >
<DIInputView name="CASE_LOAD_FIRST_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>No</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_AM_AMPROJECT_TSNP.txt</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>


<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CASE_LOAD_FIRST_RUN" value="$P_LATEST_WF_STATUS IS NULL and ($G_DEBUG_MODE &lt;&gt;1 or $G_DEBUG_MODE IS NULL) and ($G_TRACE_MODE &lt;&gt;1 or $G_TRACE_MODE IS NULL)"/>
<DIAttribute name="CASE_LOAD_RE_RUN" value="DEFAULT"/>
<DIAttribute name="ui_acta_from_schema_0" value="Merge"/>
<DIAttribute name="ui_display_name" value="CASE_LOAD"/>
</DIUIOptions>
<DIInputView name="Merge" />
<DISchema name="CASE_LOAD" >
</DISchema>
<DICase>
<DISwitch label="FIRST_RUN" outputView="CASE_LOAD_FIRST_RUN" isDefault="false">
<DIExpression isString="true" expr="((($P_LATEST_WF_STATUS IS  NULL ) AND&#xA;   (  (($G_DEBUG_MODE != 1) OR&#xA;   ($G_DEBUG_MODE IS  NULL ))  )) AND&#xA;   (  (($G_TRACE_MODE != 1) OR&#xA;   ($G_TRACE_MODE IS  NULL ))  ))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$P_LATEST_WF_STATUS" />
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="RE_RUN" outputView="CASE_LOAD_RE_RUN" isDefault="true">
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="AM_AMPROJECT_TSNP" >
<DIInputView name="CASE_LOAD_RE_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_AM_AMPROJECT_TSNP.txt</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>

</DataIntegratorExport>

